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
-
Constructor Summary
ConstructorDescriptiondefault constructorTableSplit
(byte[] tableName, byte[] startRow, byte[] endRow, String location) TableSplit
(TableName tableName, byte[] startRow, byte[] endRow, String location) Constructor -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
byte[]
Returns end row keylong
String[]
Returns the region's hostnamebyte[]
Returns starting row keygetTable()
Returns table namebyte[]
Returns table nameint
hashCode()
void
readFields
(DataInput in) toString()
void
write
(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:
getLocations
in interfaceorg.apache.hadoop.mapred.InputSplit
-
getLength
- Specified by:
getLength
in interfaceorg.apache.hadoop.mapred.InputSplit
-
readFields
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
write
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<TableSplit>
-
equals
-
hashCode
-