|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.InputSplit
org.apache.hadoop.hbase.mapreduce.TableSplit
public class TableSplit
A table split corresponds to a key range (low, high). All references to row below refer to the key of the row.
| Constructor Summary | |
|---|---|
TableSplit()
Default constructor. |
|
TableSplit(byte[] tableName,
byte[] startRow,
byte[] endRow,
java.lang.String location)
Creates a new instance while assigning all variables. |
|
| Method Summary | |
|---|---|
int |
compareTo(TableSplit split)
Compares this split against the given one. |
boolean |
equals(java.lang.Object o)
|
byte[] |
getEndRow()
Returns the end row. |
long |
getLength()
Returns the length of the split. |
java.lang.String[] |
getLocations()
Returns the region's location as an array. |
java.lang.String |
getRegionLocation()
Returns the region location. |
byte[] |
getStartRow()
Returns the start row. |
byte[] |
getTableName()
Returns the table name. |
void |
readFields(java.io.DataInput in)
Reads the values of each field. |
java.lang.String |
toString()
Returns the details about this instance as a string. |
void |
write(java.io.DataOutput out)
Writes the field values to the output. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TableSplit()
public TableSplit(byte[] tableName,
byte[] startRow,
byte[] endRow,
java.lang.String location)
tableName - The name of the current table.startRow - The start row of the split.endRow - The end row of the split.location - The location of the region.| Method Detail |
|---|
public byte[] getTableName()
public byte[] getStartRow()
public byte[] getEndRow()
public java.lang.String getRegionLocation()
public java.lang.String[] getLocations()
getLocations in class org.apache.hadoop.mapreduce.InputSplitInputSplit.getLocations()public long getLength()
getLength in class org.apache.hadoop.mapreduce.InputSplitInputSplit.getLength()
public void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablein - The input to read from.
java.io.IOException - When reading the input fails.
public void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writableout - The output to write to.
java.io.IOException - When writing the values to the output fails.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int compareTo(TableSplit split)
compareTo in interface java.lang.Comparable<TableSplit>split - The split to compare to.
Comparable.compareTo(java.lang.Object)public boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||