|
||||||||||
| 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 total number of bytes in the data of the InputSplit. |
String[] |
getLocations()
Get the list of hostnames where the input split is located. |
Text |
getStartRow()
|
Text |
getTableName()
|
void |
readFields(DataInput in)
Deserialize the fields of this object from in. |
String |
toString()
|
void |
write(DataOutput out)
Serialize 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 InputSplitpublic String[] getLocations()
getLocations in interface InputSplitInputSplit is
located as an array of Strings.
public void readFields(DataInput in)
throws IOException
in.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.
IOException
public void write(DataOutput out)
throws IOException
out.
write in interface Writableout - DataOuput to serialize this object into.
IOExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||