@InterfaceAudience.Public public class TableRecordReaderImpl extends Object
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
endRow |
private Table |
htable |
private byte[] |
lastSuccessfulRow |
private static org.slf4j.Logger |
LOG |
private int |
logPerRowCount |
private boolean |
logScannerActivity |
private int |
rowcount |
private ResultScanner |
scanner |
private byte[] |
startRow |
private long |
timestamp |
private byte[][] |
trrInputColumns |
private Filter |
trrRowFilter |
| Constructor and Description |
|---|
TableRecordReaderImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ImmutableBytesWritable |
createKey() |
Result |
createValue() |
long |
getPos() |
float |
getProgress() |
(package private) byte[] |
getStartRow() |
void |
init()
Build the scanner.
|
boolean |
next(ImmutableBytesWritable key,
Result value) |
void |
restart(byte[] firstRow)
Restart from survivable exceptions by creating a new scanner.
|
void |
setEndRow(byte[] endRow) |
void |
setHTable(Table htable) |
void |
setInputColumns(byte[][] inputColumns) |
void |
setRowFilter(Filter rowFilter) |
void |
setStartRow(byte[] startRow) |
private static final org.slf4j.Logger LOG
private byte[] startRow
private byte[] endRow
private byte[] lastSuccessfulRow
private Filter trrRowFilter
private ResultScanner scanner
private byte[][] trrInputColumns
private long timestamp
private int rowcount
private boolean logScannerActivity
private int logPerRowCount
public TableRecordReaderImpl()
public void restart(byte[] firstRow) throws IOException
firstRow - IOExceptionpublic void init() throws IOException
IOExceptionbyte[] getStartRow()
public void setHTable(Table htable)
htable - the HTableDescriptor to scan.public void setInputColumns(byte[][] inputColumns)
inputColumns - the columns to be placed in Result.public void setStartRow(byte[] startRow)
startRow - the first row in the splitpublic void setEndRow(byte[] endRow)
endRow - the last row in the splitpublic void setRowFilter(Filter rowFilter)
rowFilter - the Filter to be used.public void close()
public ImmutableBytesWritable createKey()
RecordReader.createKey()public Result createValue()
RecordReader.createValue()public long getPos()
public float getProgress()
public boolean next(ImmutableBytesWritable key, Result value) throws IOException
key - HStoreKey as input key.value - MapWritable as input valueIOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.