@InterfaceAudience.Public @InterfaceStability.Stable public class TableRecordReader extends Object implements org.apache.hadoop.mapred.RecordReader<ImmutableBytesWritable,Result>
| 构造器和说明 |
|---|
TableRecordReader() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
ImmutableBytesWritable |
createKey() |
Result |
createValue() |
long |
getPos() |
float |
getProgress() |
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) |
public void restart(byte[] firstRow)
throws IOException
firstRow - IOExceptionpublic void init()
throws IOException
IOExceptionpublic 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 close()
close 在接口中 org.apache.hadoop.mapred.RecordReader<ImmutableBytesWritable,Result>public ImmutableBytesWritable createKey()
createKey 在接口中 org.apache.hadoop.mapred.RecordReader<ImmutableBytesWritable,Result>RecordReader.createKey()public Result createValue()
createValue 在接口中 org.apache.hadoop.mapred.RecordReader<ImmutableBytesWritable,Result>RecordReader.createValue()public long getPos()
getPos 在接口中 org.apache.hadoop.mapred.RecordReader<ImmutableBytesWritable,Result>public float getProgress()
getProgress 在接口中 org.apache.hadoop.mapred.RecordReader<ImmutableBytesWritable,Result>public boolean next(ImmutableBytesWritable key, Result value) throws IOException
next 在接口中 org.apache.hadoop.mapred.RecordReader<ImmutableBytesWritable,Result>key - HStoreKey as input key.value - MapWritable as input valueIOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.