public class AvroContainerOutputFormat extends Object implements HiveOutputFormat<org.apache.hadoop.io.WritableComparable,AvroGenericRecordWritable>
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
AvroContainerOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkOutputSpecs(org.apache.hadoop.fs.FileSystem ignored,
org.apache.hadoop.mapred.JobConf job) |
FileSinkOperator.RecordWriter |
getHiveRecordWriter(org.apache.hadoop.mapred.JobConf jobConf,
org.apache.hadoop.fs.Path path,
Class<? extends org.apache.hadoop.io.Writable> valueClass,
boolean isCompressed,
Properties properties,
org.apache.hadoop.util.Progressable progressable)
create the final out file and get some specific settings.
|
org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.WritableComparable,AvroGenericRecordWritable> |
getRecordWriter(org.apache.hadoop.fs.FileSystem ignored,
org.apache.hadoop.mapred.JobConf job,
String fileName,
org.apache.hadoop.util.Progressable progress) |
public FileSinkOperator.RecordWriter getHiveRecordWriter(org.apache.hadoop.mapred.JobConf jobConf, org.apache.hadoop.fs.Path path, Class<? extends org.apache.hadoop.io.Writable> valueClass, boolean isCompressed, Properties properties, org.apache.hadoop.util.Progressable progressable) throws IOException
HiveOutputFormatgetHiveRecordWriter in interface HiveOutputFormat<org.apache.hadoop.io.WritableComparable,AvroGenericRecordWritable>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 reportIOExceptionpublic org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.WritableComparable,AvroGenericRecordWritable> getRecordWriter(org.apache.hadoop.fs.FileSystem ignored, org.apache.hadoop.mapred.JobConf job, String fileName, org.apache.hadoop.util.Progressable progress) throws IOException
getRecordWriter in interface org.apache.hadoop.mapred.OutputFormat<org.apache.hadoop.io.WritableComparable,AvroGenericRecordWritable>IOExceptionpublic void checkOutputSpecs(org.apache.hadoop.fs.FileSystem ignored,
org.apache.hadoop.mapred.JobConf job)
throws IOException
checkOutputSpecs in interface org.apache.hadoop.mapred.OutputFormat<org.apache.hadoop.io.WritableComparable,AvroGenericRecordWritable>IOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.