public class HiveInputFormat<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable> extends Object implements org.apache.hadoop.mapred.InputFormat<K,V>, org.apache.hadoop.mapred.JobConfigurable
Modifier and Type | Class and Description |
---|---|
static class |
HiveInputFormat.HiveInputSplit
HiveInputSplit encapsulates an InputSplit with its corresponding
inputFormatClass.
|
Modifier and Type | Field and Description |
---|---|
protected MapWork |
mrwork |
protected Map<String,PartitionDesc> |
pathToPartitionInfo |
Constructor and Description |
---|
HiveInputFormat() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.apache.hadoop.mapred.JobConf job) |
static org.apache.hadoop.mapred.InputFormat<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable> |
getInputFormatFromCache(Class inputFormatClass,
org.apache.hadoop.mapred.JobConf job) |
protected static PartitionDesc |
getPartitionDescFromPath(Map<String,PartitionDesc> pathToPartitionInfo,
org.apache.hadoop.fs.Path dir) |
org.apache.hadoop.mapred.RecordReader |
getRecordReader(org.apache.hadoop.mapred.InputSplit split,
org.apache.hadoop.mapred.JobConf job,
org.apache.hadoop.mapred.Reporter reporter) |
org.apache.hadoop.mapred.InputSplit[] |
getSplits(org.apache.hadoop.mapred.JobConf job,
int numSplits) |
protected void |
init(org.apache.hadoop.mapred.JobConf job) |
static void |
pushFilters(org.apache.hadoop.mapred.JobConf jobConf,
TableScanOperator tableScan) |
protected void |
pushProjectionsAndFilters(org.apache.hadoop.mapred.JobConf jobConf,
Class inputFormatClass,
String splitPath,
String splitPathWithNoSchema) |
protected void |
pushProjectionsAndFilters(org.apache.hadoop.mapred.JobConf jobConf,
Class inputFormatClass,
String splitPath,
String splitPathWithNoSchema,
boolean nonNative) |
protected Map<String,PartitionDesc> pathToPartitionInfo
protected MapWork mrwork
public void configure(org.apache.hadoop.mapred.JobConf job)
configure
in interface org.apache.hadoop.mapred.JobConfigurable
public static org.apache.hadoop.mapred.InputFormat<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable> getInputFormatFromCache(Class inputFormatClass, org.apache.hadoop.mapred.JobConf job) throws IOException
IOException
public org.apache.hadoop.mapred.RecordReader getRecordReader(org.apache.hadoop.mapred.InputSplit split, org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.Reporter reporter) throws IOException
getRecordReader
in interface org.apache.hadoop.mapred.InputFormat<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>
IOException
protected void init(org.apache.hadoop.mapred.JobConf job)
public org.apache.hadoop.mapred.InputSplit[] getSplits(org.apache.hadoop.mapred.JobConf job, int numSplits) throws IOException
getSplits
in interface org.apache.hadoop.mapred.InputFormat<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>
IOException
protected static PartitionDesc getPartitionDescFromPath(Map<String,PartitionDesc> pathToPartitionInfo, org.apache.hadoop.fs.Path dir) throws IOException
IOException
public static void pushFilters(org.apache.hadoop.mapred.JobConf jobConf, TableScanOperator tableScan)
protected void pushProjectionsAndFilters(org.apache.hadoop.mapred.JobConf jobConf, Class inputFormatClass, String splitPath, String splitPathWithNoSchema)
Copyright © 2017 The Apache Software Foundation. All rights reserved.