@InterfaceAudience.Public @InterfaceStability.Stable public class TableSplit extends Object implements org.apache.hadoop.mapred.InputSplit, Comparable<TableSplit>
| 构造器和说明 |
|---|
TableSplit()
default constructor
|
TableSplit(byte[] tableName,
byte[] startRow,
byte[] endRow,
String location) |
TableSplit(TableName tableName,
byte[] startRow,
byte[] endRow,
String location)
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 org.apache.hadoop.mapred.InputSplitpublic long getLength()
getLength 在接口中 org.apache.hadoop.mapred.InputSplitpublic void readFields(DataInput in) throws IOException
readFields 在接口中 org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput out) throws IOException
write 在接口中 org.apache.hadoop.io.WritableIOExceptionpublic int compareTo(TableSplit o)
compareTo 在接口中 Comparable<TableSplit>Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.