public class TableSplit extends org.apache.hadoop.mapreduce.InputSplit implements org.apache.hadoop.io.Writable, java.lang.Comparable<TableSplit>
| Constructor and Description |
|---|
TableSplit() |
TableSplit(java.lang.String tabName,
org.ojai.store.QueryCondition c,
java.lang.String[] locs,
long len) |
TableSplit(com.mapr.db.TableSplitInternal intl) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TableSplit arg0) |
boolean |
equals(java.lang.Object o) |
com.mapr.db.impl.ConditionImpl |
getCondition() |
long |
getLength()
Returns the length of the split.
|
java.lang.String[] |
getLocations()
Returns the region's location as an array.
|
byte[] |
getStartRow() |
byte[] |
getStopRow() |
java.lang.String |
getTableName() |
com.mapr.db.TableSplitInternal |
getTableSplitInt() |
int |
hashCode() |
void |
readFields(java.io.DataInput in)
Reads the values of each field.
|
void |
setLocations(java.lang.String[] locs) |
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.
|
public TableSplit()
public TableSplit(com.mapr.db.TableSplitInternal intl)
public TableSplit(java.lang.String tabName,
org.ojai.store.QueryCondition c,
java.lang.String[] locs,
long len)
public java.lang.String[] getLocations()
getLocations in class org.apache.hadoop.mapreduce.InputSplitInputSplit.getLocations()public void setLocations(java.lang.String[] locs)
public com.mapr.db.impl.ConditionImpl getCondition()
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 java.lang.String getTableName()
public byte[] getStartRow()
public byte[] getStopRow()
public int compareTo(TableSplit arg0)
compareTo in interface java.lang.Comparable<TableSplit>public com.mapr.db.TableSplitInternal getTableSplitInt()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object