org.apache.hadoop.hive.hbase
Class HBaseSplit
java.lang.Object
org.apache.hadoop.mapreduce.InputSplit
org.apache.hadoop.mapred.FileSplit
org.apache.hadoop.hive.hbase.HBaseSplit
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable, org.apache.hadoop.mapred.InputSplit
public class HBaseSplit
- extends org.apache.hadoop.mapred.FileSplit
- implements org.apache.hadoop.mapred.InputSplit
HBaseSplit augments FileSplit with HBase column mapping.
|
Constructor Summary |
HBaseSplit()
|
HBaseSplit(org.apache.hadoop.hbase.mapreduce.TableSplit split,
org.apache.hadoop.fs.Path dummyPath)
|
| Methods inherited from class org.apache.hadoop.mapred.FileSplit |
getPath, getStart |
HBaseSplit
public HBaseSplit()
HBaseSplit
public HBaseSplit(org.apache.hadoop.hbase.mapreduce.TableSplit split,
org.apache.hadoop.fs.Path dummyPath)
getSplit
public org.apache.hadoop.hbase.mapreduce.TableSplit getSplit()
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields in interface org.apache.hadoop.io.Writable- Overrides:
readFields in class org.apache.hadoop.mapred.FileSplit
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class org.apache.hadoop.mapred.FileSplit
write
public void write(DataOutput out)
throws IOException
- Specified by:
write in interface org.apache.hadoop.io.Writable- Overrides:
write in class org.apache.hadoop.mapred.FileSplit
- Throws:
IOException
getLength
public long getLength()
- Specified by:
getLength in interface org.apache.hadoop.mapred.InputSplit- Overrides:
getLength in class org.apache.hadoop.mapred.FileSplit
getLocations
public String[] getLocations()
throws IOException
- Specified by:
getLocations in interface org.apache.hadoop.mapred.InputSplit- Overrides:
getLocations in class org.apache.hadoop.mapred.FileSplit
- Throws:
IOException
Copyright © 2014 The Apache Software Foundation. All rights reserved.