public class OrcOutputFormat extends org.apache.hadoop.mapred.FileOutputFormat<org.apache.hadoop.io.NullWritable,org.apache.hadoop.hive.ql.io.orc.OrcSerde.OrcSerdeRow> implements AcidOutputFormat<org.apache.hadoop.io.NullWritable,org.apache.hadoop.hive.ql.io.orc.OrcSerde.OrcSerdeRow>
org.apache.hadoop.mapred.FileOutputFormat.Counter
AcidOutputFormat.Options
Constructor and Description |
---|
OrcOutputFormat() |
Modifier and Type | Method and Description |
---|---|
StatsProvidingRecordWriter |
getHiveRecordWriter(org.apache.hadoop.mapred.JobConf conf,
org.apache.hadoop.fs.Path path,
Class<? extends org.apache.hadoop.io.Writable> valueClass,
boolean isCompressed,
Properties tableProperties,
org.apache.hadoop.util.Progressable reporter)
create the final out file and get some specific settings.
|
FileSinkOperator.RecordWriter |
getRawRecordWriter(org.apache.hadoop.fs.Path path,
AcidOutputFormat.Options options)
Create a raw writer for ACID events.
|
RecordUpdater |
getRecordUpdater(org.apache.hadoop.fs.Path path,
AcidOutputFormat.Options options)
Create a RecordUpdater for inserting, updating, or deleting records.
|
org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.NullWritable,org.apache.hadoop.hive.ql.io.orc.OrcSerde.OrcSerdeRow> |
getRecordWriter(org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.mapred.JobConf conf,
String name,
org.apache.hadoop.util.Progressable reporter) |
checkOutputSpecs, getCompressOutput, getOutputCompressorClass, getOutputPath, getPathForCustomFile, getTaskOutputPath, getUniqueName, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath, setWorkOutputPath
public org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.NullWritable,org.apache.hadoop.hive.ql.io.orc.OrcSerde.OrcSerdeRow> getRecordWriter(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.mapred.JobConf conf, String name, org.apache.hadoop.util.Progressable reporter) throws IOException
getRecordWriter
in interface org.apache.hadoop.mapred.OutputFormat<org.apache.hadoop.io.NullWritable,org.apache.hadoop.hive.ql.io.orc.OrcSerde.OrcSerdeRow>
getRecordWriter
in class org.apache.hadoop.mapred.FileOutputFormat<org.apache.hadoop.io.NullWritable,org.apache.hadoop.hive.ql.io.orc.OrcSerde.OrcSerdeRow>
IOException
public StatsProvidingRecordWriter getHiveRecordWriter(org.apache.hadoop.mapred.JobConf conf, org.apache.hadoop.fs.Path path, Class<? extends org.apache.hadoop.io.Writable> valueClass, boolean isCompressed, Properties tableProperties, org.apache.hadoop.util.Progressable reporter) throws IOException
HiveOutputFormat
getHiveRecordWriter
in interface HiveOutputFormat<org.apache.hadoop.io.NullWritable,org.apache.hadoop.hive.ql.io.orc.OrcSerde.OrcSerdeRow>
conf
- the job configuration filepath
- the final output file to be createdvalueClass
- the value class used for createisCompressed
- whether the content is compressed or nottableProperties
- the table properties of this file's corresponding tablereporter
- progress used for status reportIOException
public RecordUpdater getRecordUpdater(org.apache.hadoop.fs.Path path, AcidOutputFormat.Options options) throws IOException
AcidOutputFormat
getRecordUpdater
in interface AcidOutputFormat<org.apache.hadoop.io.NullWritable,org.apache.hadoop.hive.ql.io.orc.OrcSerde.OrcSerdeRow>
path
- the partition directory nameoptions
- the options for the writerIOException
public FileSinkOperator.RecordWriter getRawRecordWriter(org.apache.hadoop.fs.Path path, AcidOutputFormat.Options options) throws IOException
AcidOutputFormat
getRawRecordWriter
in interface AcidOutputFormat<org.apache.hadoop.io.NullWritable,org.apache.hadoop.hive.ql.io.orc.OrcSerde.OrcSerdeRow>
path
- the root directoryoptions
- options for writing the fileIOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.