public class HivePassThroughOutputFormat<K,V> extends java.lang.Object implements HiveOutputFormat<K,V>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HIVE_PASSTHROUGH_OF_CLASSNAME |
static java.lang.String |
HIVE_PASSTHROUGH_STORAGEHANDLER_OF_JOBCONFKEY |
Constructor and Description |
---|
HivePassThroughOutputFormat() |
Modifier and Type | Method and Description |
---|---|
void |
checkOutputSpecs(FileSystem ignored,
JobConf job) |
Configuration |
getConf() |
FileSinkOperator.RecordWriter |
getHiveRecordWriter(JobConf jc,
Path finalOutPath,
java.lang.Class<? extends Writable> valueClass,
boolean isCompressed,
java.util.Properties tableProperties,
Progressable progress)
create the final out file and get some specific settings.
|
<any> |
getRecordWriter(FileSystem ignored,
JobConf job,
java.lang.String name,
Progressable progress) |
void |
setConf(Configuration config) |
public static final java.lang.String HIVE_PASSTHROUGH_OF_CLASSNAME
public static final java.lang.String HIVE_PASSTHROUGH_STORAGEHANDLER_OF_JOBCONFKEY
public void checkOutputSpecs(FileSystem ignored, JobConf job) throws java.io.IOException
java.io.IOException
public <any> getRecordWriter(FileSystem ignored, JobConf job, java.lang.String name, Progressable progress) throws java.io.IOException
java.io.IOException
public FileSinkOperator.RecordWriter getHiveRecordWriter(JobConf jc, Path finalOutPath, java.lang.Class<? extends Writable> valueClass, boolean isCompressed, java.util.Properties tableProperties, Progressable progress) throws java.io.IOException
HiveOutputFormat
getHiveRecordWriter
in interface HiveOutputFormat<K,V>
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 reportjava.io.IOException
public Configuration getConf()
public void setConf(Configuration config)
Copyright © 2012 The Apache Software Foundation