org.apache.hadoop.hive.ql.io
Class HiveNullValueSequenceFileOutputFormat

java.lang.Object
  extended by org.apache.hadoop.mapred.FileOutputFormat<K,V>
      extended by org.apache.hadoop.mapred.SequenceFileOutputFormat
          extended by org.apache.hadoop.hive.ql.io.HiveNullValueSequenceFileOutputFormat
All Implemented Interfaces:
HiveOutputFormat<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable>, org.apache.hadoop.mapred.OutputFormat

public class HiveNullValueSequenceFileOutputFormat
extends org.apache.hadoop.mapred.SequenceFileOutputFormat
implements HiveOutputFormat<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable>

A HiveOutputFormat that writes SequenceFiles with the content saved in the keys, and null in the values.


Constructor Summary
HiveNullValueSequenceFileOutputFormat()
           
 
Method Summary
 FileSinkOperator.RecordWriter getHiveRecordWriter(org.apache.hadoop.mapred.JobConf jc, org.apache.hadoop.fs.Path finalOutPath, Class<? extends org.apache.hadoop.io.Writable> valueClass, boolean isCompressed, Properties tableProperties, org.apache.hadoop.util.Progressable progress)
          create the final out file and get some specific settings.
 
Methods inherited from class org.apache.hadoop.mapred.SequenceFileOutputFormat
getOutputCompressionType, getReaders, getRecordWriter, setOutputCompressionType
 
Methods inherited from class org.apache.hadoop.mapred.FileOutputFormat
checkOutputSpecs, getCompressOutput, getOutputCompressorClass, getOutputPath, getPathForCustomFile, getTaskOutputPath, getUniqueName, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiveNullValueSequenceFileOutputFormat

public HiveNullValueSequenceFileOutputFormat()
Method Detail

getHiveRecordWriter

public FileSinkOperator.RecordWriter getHiveRecordWriter(org.apache.hadoop.mapred.JobConf jc,
                                                         org.apache.hadoop.fs.Path finalOutPath,
                                                         Class<? extends org.apache.hadoop.io.Writable> valueClass,
                                                         boolean isCompressed,
                                                         Properties tableProperties,
                                                         org.apache.hadoop.util.Progressable progress)
                                                  throws IOException
Description copied from interface: HiveOutputFormat
create the final out file and get some specific settings.

Specified by:
getHiveRecordWriter in interface HiveOutputFormat<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable>
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 © 2010 The Apache Software Foundation