@InterfaceAudience.Public @InterfaceStability.Stable 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
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TableSplit o) |
boolean |
equals(Object o) |
byte[] |
getEndRow() |
long |
getLength() |
String[] |
getLocations() |
String |
getRegionLocation() |
byte[] |
getStartRow() |
TableName |
getTable() |
byte[] |
getTableName() |
int |
hashCode() |
void |
readFields(DataInput in) |
String |
toString() |
void |
write(DataOutput out) |
public TableSplit()
public TableSplit(TableName tableName, byte[] startRow, byte[] endRow, String location)
tableName
- startRow
- endRow
- location
- public TableSplit(byte[] tableName, byte[] startRow, byte[] endRow, String location)
public TableName getTable()
public byte[] getTableName()
public byte[] getStartRow()
public byte[] getEndRow()
public String getRegionLocation()
public String[] getLocations()
getLocations
in interface org.apache.hadoop.mapred.InputSplit
public long getLength()
getLength
in interface org.apache.hadoop.mapred.InputSplit
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public int compareTo(TableSplit o)
compareTo
in interface Comparable<TableSplit>
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.