Package org.apache.hadoop.hbase.mapred
Class TableSplit
java.lang.Object
org.apache.hadoop.hbase.mapred.TableSplit
- All Implemented Interfaces:
Comparable<TableSplit>,org.apache.hadoop.io.Writable,org.apache.hadoop.mapred.InputSplit
@Public
public class TableSplit
extends Object
implements org.apache.hadoop.mapred.InputSplit, Comparable<TableSplit>
A table split corresponds to a key range [low, high)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptiondefault constructorTableSplit(byte[] tableName, byte[] startRow, byte[] endRow, String location) TableSplit(TableName tableName, byte[] startRow, byte[] endRow, String location) Constructor -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbyte[]Returns end row keylongString[]Returns the region's hostnamebyte[]Returns starting row keygetTable()Returns table namebyte[]Returns table nameinthashCode()voidreadFields(DataInput in) toString()voidwrite(DataOutput out)
-
Field Details
-
m_tableName
-
m_startRow
-
m_endRow
-
m_regionLocation
-
-
Constructor Details
-
TableSplit
public TableSplit()default constructor -
TableSplit
Constructor -
TableSplit
-
-
Method Details
-
getTable
Returns table name -
getTableName
Returns table name -
getStartRow
Returns starting row key -
getEndRow
Returns end row key -
getRegionLocation
Returns the region's hostname -
getLocations
- Specified by:
getLocationsin interfaceorg.apache.hadoop.mapred.InputSplit
-
getLength
- Specified by:
getLengthin interfaceorg.apache.hadoop.mapred.InputSplit
-
readFields
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
write
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<TableSplit>
-
equals
-
hashCode
-