org.apache.hadoop.hive.ql.io
Class BucketizedHiveInputSplit
java.lang.Object
FileSplit
org.apache.hadoop.hive.ql.io.HiveInputFormat.HiveInputSplit
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.
inputSplits
protected InputSplit[] inputSplits
inputFormatClassName
protected String inputFormatClassName
BucketizedHiveInputSplit
public BucketizedHiveInputSplit()
BucketizedHiveInputSplit
public BucketizedHiveInputSplit(InputSplit[] inputSplits,
String inputFormatClassName)
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