org.apache.hadoop.hive.ql.io
Class HiveSequenceFileOutputFormat<K,V>

java.lang.Object
  extended by 
      extended by org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat<K,V>
All Implemented Interfaces:
HiveOutputFormat<K,V>
Direct Known Subclasses:
PTFRowContainer.PTFHiveSequenceFileOutputFormat

public class HiveSequenceFileOutputFormat<K,V>
extends
implements HiveOutputFormat<K,V>

A HiveOutputFormat that writes SequenceFiles.


Constructor Summary
HiveSequenceFileOutputFormat()
           
 
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 output an empty key as the key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hive.ql.io.HiveOutputFormat
getHiveRecordWriter
 

Constructor Detail

HiveSequenceFileOutputFormat

public HiveSequenceFileOutputFormat()
Method Detail

getHiveRecordWriter

public 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 output an empty key as the key.

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 tableInfo 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