Class HashTable
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.mapreduce.HashTable
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
@Private
public class HashTable
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class(package private) static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int(package private) static final StringDefault hash algorithm.(package private) org.apache.hadoop.fs.Path(package private) static final Stringprivate static final String(package private) static final String(package private) static final Stringprivate static final org.slf4j.Logger(package private) static final Stringprivate static final int(package private) static final String(package private) static final String(package private) HashTable.TableHashprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidorg.apache.hadoop.mapreduce.JobcreateSubmittableJob(String[] args) private booleandoCommandLine(String[] args) private voidgeneratePartitions(org.apache.hadoop.fs.Path partitionsPath) (package private) static booleanisTableEndRow(byte[] row) (package private) static booleanisTableStartRow(byte[] row) static voidMain entry point.private static voidprintUsage(String errorMsg) intprivate voidMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
LOG
-
DEFAULT_BATCH_SIZE
- See Also:
-
DEFAULT_HASH_ALGORITHM
Default hash algorithm. Kept as MD5 so that manifests produced by older versions, which did not record an algorithm, remain readable.- See Also:
-
HASH_BATCH_SIZE_CONF_KEY
- See Also:
-
HASH_ALGORITHM_CONF_KEY
- See Also:
-
PARTITIONS_FILE_NAME
- See Also:
-
MANIFEST_FILE_NAME
- See Also:
-
HASH_DATA_DIR
- See Also:
-
OUTPUT_DATA_FILE_PREFIX
- See Also:
-
IGNORE_TIMESTAMPS
- See Also:
-
TMP_MANIFEST_FILE_NAME
- See Also:
-
tableHash
-
destPath
org.apache.hadoop.fs.Path destPath -
NUM_ARGS
- See Also:
-
-
Constructor Details
-
HashTable
-
-
Method Details
-
isTableStartRow
-
isTableEndRow
-
createSubmittableJob
- Throws:
IOException
-
generatePartitions
- Throws:
IOException
-
writeTempManifestFile
- Throws:
IOException
-
completeManifest
- Throws:
IOException
-
printUsage
-
doCommandLine
-
main
Main entry point.- Throws:
Exception
-
run
- Specified by:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
Exception
-