org.apache.hadoop.hive.ql.io
Class HiveBinaryOutputFormat<K extends WritableComparable,V extends Writable>
java.lang.Object
org.apache.hadoop.hive.ql.io.HiveBinaryOutputFormat<K,V>
- All Implemented Interfaces:
- HiveOutputFormat<K,V>
public class HiveBinaryOutputFormat<K extends WritableComparable,V extends Writable>
- extends
- implements HiveOutputFormat<K,V>
HiveBinaryOutputFormat writes out the values consecutively without any
separators. It can be used to create a binary data file.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HiveBinaryOutputFormat
public HiveBinaryOutputFormat()
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 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 © 2012 The Apache Software Foundation