Package org.apache.orc.mapred
Class OrcOutputFormat<V extends Writable>
- All Implemented Interfaces:
OutputFormat<NullWritable,V>
An ORC output format that satisfies the org.apache.hadoop.mapred API.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapred.FileOutputFormat
FileOutputFormat.Counter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OrcFile.WriterOptionsbuildOptions(Configuration conf) This function builds the options for the ORC Writer based on the JobConf.getRecordWriter(FileSystem fileSystem, JobConf conf, String name, Progressable progressable) Methods inherited from class org.apache.hadoop.mapred.FileOutputFormat
checkOutputSpecs, getCompressOutput, getOutputCompressorClass, getOutputPath, getPathForCustomFile, getTaskOutputPath, getUniqueName, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath, setWorkOutputPath
-
Constructor Details
-
OrcOutputFormat
public OrcOutputFormat()
-
-
Method Details
-
buildOptions
This function builds the options for the ORC Writer based on the JobConf.- Parameters:
conf- the job configuration- Returns:
- a new options object
-
getRecordWriter
public RecordWriter<NullWritable,V> getRecordWriter(FileSystem fileSystem, JobConf conf, String name, Progressable progressable) throws IOException - Specified by:
getRecordWriterin interfaceOutputFormat<NullWritable,V extends Writable> - Specified by:
getRecordWriterin classFileOutputFormat<NullWritable,V extends Writable> - Throws:
IOException
-