org.apache.hadoop.hbase.mapred
Class TableSplit
java.lang.Object
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 |
TableSplit
public TableSplit()
- default constructor
TableSplit
public TableSplit(byte[] tableName,
byte[] startRow,
byte[] endRow)
- Constructor
- Parameters:
tableName
- startRow
- endRow
-
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