org.apache.hadoop.hive.ql.io
Class HivePassThroughOutputFormat<K,V>
java.lang.Object
org.apache.hadoop.hive.ql.io.HivePassThroughOutputFormat<K,V>
- All Implemented Interfaces:
- HiveOutputFormat<K,V>
public class HivePassThroughOutputFormat<K,V>
- extends Object
- implements HiveOutputFormat<K,V>
This pass through class is used to wrap OutputFormat implementations such that new OutputFormats not derived from
HiveOutputFormat gets through the checker
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HIVE_PASSTHROUGH_OF_CLASSNAME
public static final String HIVE_PASSTHROUGH_OF_CLASSNAME
- See Also:
- Constant Field Values
HIVE_PASSTHROUGH_STORAGEHANDLER_OF_JOBCONFKEY
public static final String HIVE_PASSTHROUGH_STORAGEHANDLER_OF_JOBCONFKEY
- See Also:
- Constant Field Values
HivePassThroughOutputFormat
public HivePassThroughOutputFormat()
checkOutputSpecs
public void checkOutputSpecs(FileSystem ignored,
JobConf job)
throws IOException
- Throws:
IOException
getRecordWriter
public getRecordWriter(FileSystem ignored,
JobConf job,
String name,
Progressable progress)
throws IOException
- Throws:
IOException
getHiveRecordWriter
public FileSinkOperator.RecordWriter getHiveRecordWriter(JobConf jc,
Path finalOutPath,
Class<? extends Writable> valueClass,
boolean isCompressed,
Properties tableProperties,
Progressable progress)
throws IOException
- Description copied from interface:
HiveOutputFormat
- create the final out file and get some specific settings.
- Specified by:
getHiveRecordWriter
in interface HiveOutputFormat<K,V>
- Parameters:
jc
- the job configuration filefinalOutPath
- the final output file to be createdvalueClass
- the value class used for createisCompressed
- whether the content is compressed or nottableProperties
- the table properties of this file's corresponding tableprogress
- progress used for status report
- Returns:
- the RecordWriter for the output file
- Throws:
IOException
getConf
public Configuration getConf()
setConf
public void setConf(Configuration config)
Copyright © 2012 The Apache Software Foundation