org.apache.hadoop.hive.ql.io
Class HiveIgnoreKeyTextOutputFormat<K extends WritableComparable,V extends Writable>

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

public class HiveIgnoreKeyTextOutputFormat<K extends WritableComparable,V extends Writable>
extends
implements HiveOutputFormat<K,V>

HiveIgnoreKeyTextOutputFormat replaces key with null before feeding the to TextOutputFormat.RecordWriter.


Nested Class Summary
protected static class HiveIgnoreKeyTextOutputFormat.IgnoreKeyWriter<K extends WritableComparable,V extends Writable>
           
 
Constructor Summary
HiveIgnoreKeyTextOutputFormat()
           
 
Method Summary
 FileSinkOperator.RecordWriter getHiveRecordWriter(JobConf jc, Path outPath, Class<? extends Writable> valueClass, boolean isCompressed, Properties tableProperties, Progressable progress)
          create the final out file, and output row by row.
  getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress)
           
 
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

HiveIgnoreKeyTextOutputFormat

public HiveIgnoreKeyTextOutputFormat()
Method Detail

getHiveRecordWriter

public FileSinkOperator.RecordWriter getHiveRecordWriter(JobConf jc,
                                                         Path outPath,
                                                         Class<? extends Writable> valueClass,
                                                         boolean isCompressed,
                                                         Properties tableProperties,
                                                         Progressable progress)
                                                  throws IOException
create the final out file, and output row by row. After one row is appended, a configured row separator is appended

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

getRecordWriter

public  getRecordWriter(FileSystem ignored,
                             JobConf job,
                             String name,
                             Progressable progress)
                      throws IOException
Throws:
IOException


Copyright © 2012 The Apache Software Foundation