Package org.apache.orc.mapreduce
Class OrcInputFormat<V extends WritableComparable>
java.lang.Object
org.apache.hadoop.mapreduce.InputFormat<K,V>
org.apache.hadoop.mapreduce.lib.input.FileInputFormat<NullWritable,V>
org.apache.orc.mapreduce.OrcInputFormat<V>
An ORC input format that satisfies the org.apache.hadoop.mapreduce API.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.lib.input.FileInputFormat
FileInputFormat.Counter
-
Field Summary
Fields inherited from class org.apache.hadoop.mapreduce.lib.input.FileInputFormat
DEFAULT_LIST_STATUS_NUM_THREADS, INPUT_DIR, INPUT_DIR_NONRECURSIVE_IGNORE_SUBDIRS, INPUT_DIR_RECURSIVE, LIST_STATUS_NUM_THREADS, NUM_INPUT_FILES, PATHFILTER_CLASS, SPLIT_MAXSIZE, SPLIT_MINSIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateRecordReader
(InputSplit inputSplit, TaskAttemptContext taskAttemptContext) protected List<FileStatus>
listStatus
(JobContext job) static void
setSearchArgument
(Configuration conf, org.apache.hadoop.hive.ql.io.sarg.SearchArgument sarg, String[] columnNames) Put the given SearchArgument into the configuration for an OrcInputFormat.Methods inherited from class org.apache.hadoop.mapreduce.lib.input.FileInputFormat
addInputPath, addInputPathRecursively, addInputPaths, computeSplitSize, getBlockIndex, getFormatMinSplitSize, getInputDirRecursive, getInputPathFilter, getInputPaths, getMaxSplitSize, getMinSplitSize, getSplits, isSplitable, makeSplit, makeSplit, setInputDirRecursive, setInputPathFilter, setInputPaths, setInputPaths, setMaxInputSplitSize, setMinInputSplitSize, shrinkStatus
-
Constructor Details
-
OrcInputFormat
public OrcInputFormat()
-
-
Method Details
-
setSearchArgument
public static void setSearchArgument(Configuration conf, org.apache.hadoop.hive.ql.io.sarg.SearchArgument sarg, String[] columnNames) Put the given SearchArgument into the configuration for an OrcInputFormat.- Parameters:
conf
- the configuration to modifysarg
- the SearchArgument to put in the configurationcolumnNames
- the list of column names for the SearchArgument
-
createRecordReader
public RecordReader<NullWritable,V> createRecordReader(InputSplit inputSplit, TaskAttemptContext taskAttemptContext) throws IOException, InterruptedException - Specified by:
createRecordReader
in classInputFormat<NullWritable,
V extends WritableComparable> - Throws:
IOException
InterruptedException
-
listStatus
- Overrides:
listStatus
in classFileInputFormat<NullWritable,
V extends WritableComparable> - Throws:
IOException
-