@InterfaceAudience.Public public class TableSplit extends Object implements org.apache.hadoop.mapred.InputSplit, Comparable<TableSplit>
Modifier and Type | Field and Description |
---|---|
private byte[] |
m_endRow |
private String |
m_regionLocation |
private byte[] |
m_startRow |
private TableName |
m_tableName |
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) |
private TableName m_tableName
private byte[] m_startRow
private byte[] m_endRow
private String m_regionLocation
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 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–2020 The Apache Software Foundation. All rights reserved.