public class OrcInputFormat<V extends WritableComparable> extends FileInputFormat<NullWritable,V>
FileInputFormat.Counter
INPUT_DIR, INPUT_DIR_RECURSIVE, NUM_INPUT_FILES, PATHFILTER_CLASS, SPLIT_MAXSIZE, SPLIT_MINSIZE
Constructor and Description |
---|
OrcInputFormat() |
Modifier and Type | Method and Description |
---|---|
RecordReader<NullWritable,V> |
createRecordReader(InputSplit inputSplit,
TaskAttemptContext taskAttemptContext) |
protected List<FileStatus> |
listStatus(JobContext job) |
static void |
setSearchArgument(Configuration conf,
SearchArgument sarg,
String[] columnNames)
Put the given SearchArgument into the configuration for an OrcInputFormat.
|
addInputPath, addInputPathRecursively, addInputPaths, computeSplitSize, getBlockIndex, getFormatMinSplitSize, getInputDirRecursive, getInputPathFilter, getInputPaths, getMaxSplitSize, getMinSplitSize, getSplits, isSplitable, makeSplit, setInputDirRecursive, setInputPathFilter, setInputPaths, setInputPaths, setMaxInputSplitSize, setMinInputSplitSize
public static void setSearchArgument(Configuration conf, SearchArgument sarg, String[] columnNames)
conf
- the configuration to modifysarg
- the SearchArgument to put in the configurationcolumnNames
- the list of column names for the SearchArgumentpublic RecordReader<NullWritable,V> createRecordReader(InputSplit inputSplit, TaskAttemptContext taskAttemptContext) throws IOException, InterruptedException
createRecordReader
in class InputFormat<NullWritable,V extends WritableComparable>
IOException
InterruptedException
protected List<FileStatus> listStatus(JobContext job) throws IOException
listStatus
in class FileInputFormat<NullWritable,V extends WritableComparable>
IOException
Copyright © 2013–2021 The Apache Software Foundation. All rights reserved.