|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.mapred.TableSplit
public class TableSplit
A table split corresponds to a key range [low, high)
Constructor Summary | |
---|---|
TableSplit()
default constructor |
|
TableSplit(Text tableName,
Text startRow,
Text endRow)
Constructor |
Method Summary | |
---|---|
Text |
getEndRow()
|
long |
getLength()
Get the number of input bytes in the split. |
String[] |
getLocations()
Get the list of hostnames where the input split is located. |
Text |
getStartRow()
|
Text |
getTableName()
|
void |
readFields(DataInput in)
Reads the fields of this object from in . |
String |
toString()
|
void |
write(DataOutput out)
Writes the fields of this object to out . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TableSplit()
public TableSplit(Text tableName, Text startRow, Text endRow)
tableName
- startRow
- endRow
- Method Detail |
---|
public Text getTableName()
public Text getStartRow()
public Text getEndRow()
public long getLength()
InputSplit
getLength
in interface InputSplit
public String[] getLocations()
InputSplit
getLocations
in interface InputSplit
public void readFields(DataInput in) throws IOException
Writable
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields
in interface Writable
IOException
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
IOException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |