|
||||||||||
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,
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(Object o)
|
byte[] |
getEndRow()
Returns the end row. |
long |
getLength()
Returns the length of the split. |
String[] |
getLocations()
Returns the region's location as an array. |
String |
getRegionLocation()
Returns the region location. |
byte[] |
getStartRow()
Returns the start row. |
byte[] |
getTableName()
Returns the table name. |
int |
hashCode()
|
void |
readFields(DataInput in)
Reads the values of each field. |
String |
toString()
Returns the details about this instance as a string. |
void |
write(DataOutput out)
Writes the field values to the output. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TableSplit()
public TableSplit(byte[] tableName, byte[] startRow, byte[] endRow, 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 String getRegionLocation()
public String[] getLocations()
getLocations
in class org.apache.hadoop.mapreduce.InputSplit
InputSplit.getLocations()
public long getLength()
getLength
in class org.apache.hadoop.mapreduce.InputSplit
InputSplit.getLength()
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
in
- The input to read from.
IOException
- When reading the input fails.public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
out
- The output to write to.
IOException
- When writing the values to the output fails.public String toString()
toString
in class Object
Object.toString()
public int compareTo(TableSplit split)
compareTo
in interface Comparable<TableSplit>
split
- The split to compare to.
Comparable.compareTo(java.lang.Object)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |