org.apache.hadoop.hive.ql.io.udf
Class Rot13OutputFormat

java.lang.Object
  extended by org.apache.hadoop.mapred.FileOutputFormat<K,V>
      extended by org.apache.hadoop.mapred.TextOutputFormat<K,V>
          extended by org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
              extended by org.apache.hadoop.hive.ql.io.udf.Rot13OutputFormat
All Implemented Interfaces:
HiveOutputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>, org.apache.hadoop.mapred.OutputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>

public class Rot13OutputFormat
extends HiveIgnoreKeyTextOutputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
HiveIgnoreKeyTextOutputFormat.IgnoreKeyWriter<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapred.TextOutputFormat
org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter<K,V>
 
Constructor Summary
Rot13OutputFormat()
           
 
Method Summary
 FileSinkOperator.RecordWriter getHiveRecordWriter(org.apache.hadoop.mapred.JobConf jc, org.apache.hadoop.fs.Path outPath, Class<? extends org.apache.hadoop.io.Writable> valueClass, boolean isCompressed, Properties tableProperties, org.apache.hadoop.util.Progressable progress)
          create the final out file, and output row by row.
 
Methods inherited from class org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
getRecordWriter
 
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
 
Methods inherited from interface org.apache.hadoop.mapred.OutputFormat
checkOutputSpecs
 

Constructor Detail

Rot13OutputFormat

public Rot13OutputFormat()
Method Detail

getHiveRecordWriter

public FileSinkOperator.RecordWriter getHiveRecordWriter(org.apache.hadoop.mapred.JobConf jc,
                                                         org.apache.hadoop.fs.Path outPath,
                                                         Class<? extends org.apache.hadoop.io.Writable> valueClass,
                                                         boolean isCompressed,
                                                         Properties tableProperties,
                                                         org.apache.hadoop.util.Progressable progress)
                                                  throws IOException
Description copied from class: HiveIgnoreKeyTextOutputFormat
create the final out file, and output row by row. After one row is appended, a configured row separator is appended

Specified by:
getHiveRecordWriter in interface HiveOutputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
Overrides:
getHiveRecordWriter in class HiveIgnoreKeyTextOutputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
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


Copyright © 2011 The Apache Software Foundation