org.apache.hadoop.hive.ql.io
Class HiveBinaryOutputFormat<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>
java.lang.Object
org.apache.hadoop.mapred.FileOutputFormat<K,V>
org.apache.hadoop.mapred.TextOutputFormat<K,V>
org.apache.hadoop.hive.ql.io.HiveBinaryOutputFormat<K,V>
- All Implemented Interfaces:
- HiveOutputFormat<K,V>, org.apache.hadoop.mapred.OutputFormat<K,V>
public class HiveBinaryOutputFormat<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>
- extends org.apache.hadoop.mapred.TextOutputFormat<K,V>
- implements HiveOutputFormat<K,V>
HiveBinaryOutputFormat writes out the values consecutively without any
separators. It can be used to create a binary data file.
Nested classes/interfaces inherited from class org.apache.hadoop.mapred.FileOutputFormat |
org.apache.hadoop.mapred.FileOutputFormat.Counter |
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.TextOutputFormat |
getRecordWriter |
Methods inherited from class org.apache.hadoop.mapred.FileOutputFormat |
checkOutputSpecs, getCompressOutput, getOutputCompressorClass, getOutputPath, getPathForCustomFile, getTaskOutputPath, getUniqueName, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath, setWorkOutputPath |
Methods inherited from interface org.apache.hadoop.mapred.OutputFormat |
checkOutputSpecs, getRecordWriter |
HiveBinaryOutputFormat
public HiveBinaryOutputFormat()
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
- 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<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>
- Parameters:
jc
- the job configuration fileoutPath
- the final output file to be createdvalueClass
- the value class used for createisCompressed
- ignored. Currently we don't support compression.tableProperties
- the tableProperties of this file's corresponding tableprogress
- progress used for status report
- Returns:
- the RecordWriter
- Throws:
IOException
Copyright © 2014 The Apache Software Foundation. All rights reserved.