org.apache.hadoop.hive.ql.io.udf
Class Rot13OutputFormat
java.lang.Object
org.apache.hadoop.mapred.FileOutputFormat<K,V>
org.apache.hadoop.mapred.TextOutputFormat<K,V>
org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
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 classes/interfaces inherited from class org.apache.hadoop.mapred.TextOutputFormat |
org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter<K,V> |
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.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 |
Rot13OutputFormat
public Rot13OutputFormat()
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 fileoutPath
- the final output file to be createdvalueClass
- the value class used for createisCompressed
- whether the content is compressed or nottableProperties
- the tableProperties of this file's corresponding tableprogress
- progress used for status report
- Returns:
- the RecordWriter
- Throws:
IOException
Copyright © 2011 The Apache Software Foundation