org.apache.hadoop.hive.ql.io
Class HivePassThroughOutputFormat<K,V>

java.lang.Object
  extended by 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


Field Summary
static String HIVE_PASSTHROUGH_OF_CLASSNAME
           
static String HIVE_PASSTHROUGH_STORAGEHANDLER_OF_JOBCONFKEY
           
 
Constructor Summary
HivePassThroughOutputFormat()
           
 
Method Summary
 void checkOutputSpecs(FileSystem ignored, JobConf job)
           
 Configuration getConf()
           
 FileSinkOperator.RecordWriter getHiveRecordWriter(JobConf jc, Path finalOutPath, Class<? extends Writable> valueClass, boolean isCompressed, Properties tableProperties, Progressable progress)
          create the final out file and get some specific settings.
  getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress)
           
 void setConf(Configuration config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

HivePassThroughOutputFormat

public HivePassThroughOutputFormat()
Method Detail

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 file
finalOutPath - the final output file to be created
valueClass - the value class used for create
isCompressed - whether the content is compressed or not
tableProperties - the table properties of this file's corresponding table
progress - 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