Package com.marklogic.contentpump
Class DelimitedTextInputFormat
- java.lang.Object
-
- org.apache.hadoop.mapreduce.InputFormat<K,V>
-
- org.apache.hadoop.mapreduce.lib.input.FileInputFormat<K,V>
-
- com.marklogic.contentpump.FileAndDirectoryInputFormat<DocumentURIWithSourceInfo,org.apache.hadoop.io.Text>
-
- com.marklogic.contentpump.DelimitedTextInputFormat
-
public class DelimitedTextInputFormat extends FileAndDirectoryInputFormat<DocumentURIWithSourceInfo,org.apache.hadoop.io.Text>
InputFormat for delimited text. Each line after metadata(1st line) is a record.
-
-
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 DelimitedTextInputFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hadoop.mapreduce.RecordReader<DocumentURIWithSourceInfo,org.apache.hadoop.io.Text>createRecordReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context)List<org.apache.hadoop.mapreduce.InputSplit>getSplits(org.apache.hadoop.mapreduce.JobContext job)-
Methods inherited from class com.marklogic.contentpump.FileAndDirectoryInputFormat
isSplitable, 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,org.apache.hadoop.io.Text> 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,org.apache.hadoop.io.Text>- Throws:
IOExceptionInterruptedException
-
getSplits
public List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext job) throws IOException
- Overrides:
getSplitsin classFileAndDirectoryInputFormat<DocumentURIWithSourceInfo,org.apache.hadoop.io.Text>- Throws:
IOException
-
-