org.apache.hadoop.hbase.mapred
Class TableSplit

java.lang.Object
  extended by org.apache.hadoop.hbase.mapred.TableSplit
All Implemented Interfaces:
org.apache.hadoop.io.Writable, org.apache.hadoop.mapred.InputSplit

public class TableSplit
extends Object
implements org.apache.hadoop.mapred.InputSplit

A table split corresponds to a key range [low, high)


Constructor Summary
TableSplit()
          default constructor
TableSplit(byte[] tableName, byte[] startRow, byte[] endRow)
          Constructor
 
Method Summary
 byte[] getEndRow()
           
 long getLength()
           
 String[] getLocations()
           
 byte[] getStartRow()
           
 byte[] getTableName()
           
 void readFields(DataInput in)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableSplit

public TableSplit()
default constructor


TableSplit

public TableSplit(byte[] tableName,
                  byte[] startRow,
                  byte[] endRow)
Constructor

Parameters:
tableName -
startRow -
endRow -
Method Detail

getTableName

public byte[] getTableName()
Returns:
table name

getStartRow

public byte[] getStartRow()
Returns:
starting row key

getEndRow

public byte[] getEndRow()
Returns:
end row key

getLength

public long getLength()
Specified by:
getLength in interface org.apache.hadoop.mapred.InputSplit

getLocations

public String[] getLocations()
Specified by:
getLocations in interface org.apache.hadoop.mapred.InputSplit

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008 The Apache Software Foundation