@InterfaceAudience.Public public class TableSplit extends Object implements org.apache.hadoop.mapred.InputSplit, Comparable<TableSplit>
| Constructor and Description |
|---|
TableSplit()
default constructor
|
TableSplit(byte[] tableName,
byte[] startRow,
byte[] endRow,
String location) |
TableSplit(TableName tableName,
byte[] startRow,
byte[] endRow,
String location)
Constructor nnnn
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TableSplit o) |
boolean |
equals(Object o) |
byte[] |
getEndRow()
Returns end row key
|
long |
getLength() |
String[] |
getLocations() |
String |
getRegionLocation()
Returns the region's hostname
|
byte[] |
getStartRow()
Returns starting row key
|
TableName |
getTable()
Returns table name
|
byte[] |
getTableName()
Returns table name
|
int |
hashCode() |
void |
readFields(DataInput in) |
String |
toString() |
void |
write(DataOutput out) |
public TableSplit()
public TableSplit(TableName tableName, byte[] startRow, byte[] endRow, String location)
public TableSplit(byte[] tableName, byte[] startRow, byte[] endRow, String location)
public byte[] getTableName()
public byte[] getStartRow()
public byte[] getEndRow()
public String getRegionLocation()
public String[] getLocations()
getLocations in interface org.apache.hadoop.mapred.InputSplitpublic long getLength()
getLength in interface org.apache.hadoop.mapred.InputSplitpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic int compareTo(TableSplit o)
compareTo in interface Comparable<TableSplit>Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.