org.apache.hadoop.hive.ql.io
Interface HiveOutputFormat<K,V>

All Known Implementing Classes:
AvroContainerOutputFormat, HiveBinaryOutputFormat, HiveIgnoreKeyTextOutputFormat, HiveNullValueSequenceFileOutputFormat, HivePassThroughOutputFormat, HiveSequenceFileOutputFormat, OrcOutputFormat, PTFRowContainer.PTFHiveSequenceFileOutputFormat, RCFileOutputFormat, Rot13OutputFormat

public interface HiveOutputFormat<K,V>

HiveOutputFormat describes the output-specification for Hive's operators. It has a method getHiveRecordWriter(JobConf, Path, Class, boolean, Properties, Progressable) , with various parameters used to create the final out file and get some specific settings.

See Also:
org.apache.hadoop.mapred.OutputFormat, FileSinkOperator.RecordWriter, JobConf

Method Summary
 FileSinkOperator.RecordWriter getHiveRecordWriter(JobConf jc, Path finalOutPath, Class<? extends Writable> valueClass, boolean isCompressed, Properties tableProperties, Progressable progress)
          create the final out file and get some specific settings.
 

Method Detail

getHiveRecordWriter

FileSinkOperator.RecordWriter getHiveRecordWriter(JobConf jc,
                                                  Path finalOutPath,
                                                  Class<? extends Writable> valueClass,
                                                  boolean isCompressed,
                                                  Properties tableProperties,
                                                  Progressable progress)
                                                  throws IOException
create the final out file and get some specific settings.

Parameters:
jc - the job configuration file
finalOutPath - the final output file to be created
valueClass - the value class used for create
isCompressed - whether the content is compressed or not
tableProperties - the table properties of this file's corresponding table
progress - progress used for status report
Returns:
the RecordWriter for the output file
Throws:
IOException


Copyright © 2012 The Apache Software Foundation