org.apache.hadoop.hive.ql.io.avro
Class AvroContainerOutputFormat
java.lang.Object
org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat
- All Implemented Interfaces:
- HiveOutputFormat<LongWritable,AvroGenericRecordWritable>
public class AvroContainerOutputFormat
- extends Object
- implements HiveOutputFormat<LongWritable,AvroGenericRecordWritable>
Write to an Avro file from a Hive process.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AvroContainerOutputFormat
public AvroContainerOutputFormat()
getHiveRecordWriter
public FileSinkOperator.RecordWriter getHiveRecordWriter(JobConf jobConf,
Path path,
Class<? extends Writable> valueClass,
boolean isCompressed,
Properties properties,
Progressable progressable)
throws IOException
- Description copied from interface:
HiveOutputFormat
- create the final out file and get some specific settings.
- Specified by:
getHiveRecordWriter
in interface HiveOutputFormat<LongWritable,AvroGenericRecordWritable>
- Parameters:
jobConf
- the job configuration filepath
- the final output file to be createdvalueClass
- the value class used for createisCompressed
- whether the content is compressed or notproperties
- the table properties of this file's corresponding tableprogressable
- progress used for status report
- Returns:
- the RecordWriter for the output file
- Throws:
IOException
getRecordWriter
public getRecordWriter(FileSystem ignored,
JobConf job,
String name,
Progressable progress)
checkOutputSpecs
public void checkOutputSpecs(FileSystem ignored,
JobConf job)
throws IOException
- Throws:
IOException
Copyright © 2012 The Apache Software Foundation