public class TableSplit extends org.apache.hadoop.mapreduce.InputSplit implements org.apache.hadoop.io.Writable, Comparable<TableSplit>
| Constructor and Description |
|---|
TableSplit() |
TableSplit(String tabName,
com.mapr.db.Condition c,
String[] locs,
long len) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TableSplit arg0) |
boolean |
equals(Object o) |
com.mapr.db.impl.ConditionImpl |
getCondition() |
long |
getLength()
Returns the length of the split.
|
String[] |
getLocations()
Returns the region's location as an array.
|
byte[] |
getStartRow() |
byte[] |
getStopRow() |
String |
getTableName() |
int |
hashCode() |
void |
readFields(DataInput in)
Reads the values of each field.
|
void |
setLocations(String[] locs) |
String |
toString()
Returns the details about this instance as a string.
|
void |
write(DataOutput out)
Writes the field values to the output.
|
public String[] getLocations()
getLocations in class org.apache.hadoop.mapreduce.InputSplitInputSplit.getLocations()public void setLocations(String[] locs)
public com.mapr.db.impl.ConditionImpl getCondition()
public long getLength()
getLength in class org.apache.hadoop.mapreduce.InputSplitInputSplit.getLength()public void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.Writablein - 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.Writableout - The output to write to.IOException - When writing the values to the output fails.public String toString()
toString in class ObjectObject.toString()public String getTableName()
public byte[] getStartRow()
public byte[] getStopRow()
public int compareTo(TableSplit arg0)
compareTo in interface Comparable<TableSplit>Copyright © 2015 Mapr Technologies, Inc.. All rights reserved.