org.apache.hadoop.hive.hbase
Class HBaseSplit

java.lang.Object
  extended by org.apache.hadoop.mapreduce.InputSplit
      extended by org.apache.hadoop.mapred.FileSplit
          extended by 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)
           
 
Method Summary
 long getLength()
           
 String[] getLocations()
           
 org.apache.hadoop.hbase.mapreduce.TableSplit getSplit()
           
 void readFields(DataInput in)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class org.apache.hadoop.mapred.FileSplit
getPath, getStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HBaseSplit

public HBaseSplit()

HBaseSplit

public HBaseSplit(org.apache.hadoop.hbase.mapreduce.TableSplit split,
                  org.apache.hadoop.fs.Path dummyPath)
Method Detail

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.