Package com.marklogic.contentpump
Class CompressedDocumentInputFormat<VALUE>
- java.lang.Object
-
- org.apache.hadoop.mapreduce.InputFormat<K,V>
-
- org.apache.hadoop.mapreduce.lib.input.FileInputFormat<K,V>
-
- com.marklogic.contentpump.FileAndDirectoryInputFormat<DocumentURIWithSourceInfo,VALUE>
-
- com.marklogic.contentpump.CompressedDocumentInputFormat<VALUE>
-
- Type Parameters:
VALUE-
public class CompressedDocumentInputFormat<VALUE> extends FileAndDirectoryInputFormat<DocumentURIWithSourceInfo,VALUE>
InputFormat for reading compressed documents from file systems. One zip entry in a compressed file on the file system is one record (key value pair).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.marklogic.contentpump.FileAndDirectoryInputFormat
FileAndDirectoryInputFormat.MultiPathFilter
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.commons.logging.LogLOG-
Fields inherited from class com.marklogic.contentpump.FileAndDirectoryInputFormat
hiddenFileFilter, SPLIT_COUNT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description CompressedDocumentInputFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hadoop.mapreduce.RecordReader<DocumentURIWithSourceInfo,VALUE>createRecordReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context)protected booleanisSplitable(org.apache.hadoop.mapreduce.JobContext context, org.apache.hadoop.fs.Path filename)-
Methods inherited from class com.marklogic.contentpump.FileAndDirectoryInputFormat
getSplits, listStatus, simpleAddInputPathRecursively
-
Methods inherited from class org.apache.hadoop.mapreduce.lib.input.FileInputFormat
addInputPath, addInputPathRecursively, addInputPaths, computeSplitSize, getBlockIndex, getFormatMinSplitSize, getInputDirRecursive, getInputPathFilter, getInputPaths, getMaxSplitSize, getMinSplitSize, makeSplit, makeSplit, setInputDirRecursive, setInputPathFilter, setInputPaths, setInputPaths, setMaxInputSplitSize, setMinInputSplitSize
-
-
-
-
Method Detail
-
createRecordReader
public org.apache.hadoop.mapreduce.RecordReader<DocumentURIWithSourceInfo,VALUE> createRecordReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
- Specified by:
createRecordReaderin classorg.apache.hadoop.mapreduce.InputFormat<DocumentURIWithSourceInfo,VALUE>- Throws:
IOExceptionInterruptedException
-
isSplitable
protected boolean isSplitable(org.apache.hadoop.mapreduce.JobContext context, org.apache.hadoop.fs.Path filename)- Overrides:
isSplitablein classFileAndDirectoryInputFormat<DocumentURIWithSourceInfo,VALUE>
-
-