org.apache.hadoop.hive.ql.io
Class BucketizedHiveInputSplit

java.lang.Object
  extended by FileSplit
      extended by org.apache.hadoop.hive.ql.io.HiveInputFormat.HiveInputSplit
          extended by org.apache.hadoop.hive.ql.io.BucketizedHiveInputSplit

public class BucketizedHiveInputSplit
extends HiveInputFormat.HiveInputSplit

HiveInputSplit encapsulates an InputSplit with its corresponding inputFormatClass. The reason that it derives from FileSplit is to make sure "map.input.file" in MapTask.


Field Summary
protected  String inputFormatClassName
           
protected  InputSplit[] inputSplits
           
 
Constructor Summary
BucketizedHiveInputSplit()
           
BucketizedHiveInputSplit(InputSplit[] inputSplits, String inputFormatClassName)
           
 
Method Summary
 String getInputFormatClassName()
           
 long getLength()
           
 long getLength(int idx)
           
 String[] getLocations()
           
 int getNumSplits()
           
 Path getPath()
           
 InputSplit getSplit(int idx)
           
 long getStart()
          The position of the first byte in the file to process.
 String inputFormatClassName()
           
 void readFields(DataInput in)
           
 void setInputFormatClassName(String inputFormatClassName)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.io.HiveInputFormat.HiveInputSplit
getConf, getInputSplit, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

inputSplits

protected InputSplit[] inputSplits

inputFormatClassName

protected String inputFormatClassName
Constructor Detail

BucketizedHiveInputSplit

public BucketizedHiveInputSplit()

BucketizedHiveInputSplit

public BucketizedHiveInputSplit(InputSplit[] inputSplits,
                                String inputFormatClassName)
Method Detail

getInputFormatClassName

public String getInputFormatClassName()

setInputFormatClassName

public void setInputFormatClassName(String inputFormatClassName)

getNumSplits

public int getNumSplits()

getSplit

public InputSplit getSplit(int idx)

inputFormatClassName

public String inputFormatClassName()
Overrides:
inputFormatClassName in class HiveInputFormat.HiveInputSplit

getPath

public Path getPath()
Overrides:
getPath in class HiveInputFormat.HiveInputSplit

getStart

public long getStart()
The position of the first byte in the file to process.

Overrides:
getStart in class HiveInputFormat.HiveInputSplit

toString

public String toString()
Overrides:
toString in class HiveInputFormat.HiveInputSplit

getLength

public long getLength()
Overrides:
getLength in class HiveInputFormat.HiveInputSplit

getLength

public long getLength(int idx)

getLocations

public String[] getLocations()
                      throws IOException
Overrides:
getLocations in class HiveInputFormat.HiveInputSplit
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Overrides:
readFields in class HiveInputFormat.HiveInputSplit
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Overrides:
write in class HiveInputFormat.HiveInputSplit
Throws:
IOException


Copyright © 2012 The Apache Software Foundation