|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.mapred.TableRecordReader
@Deprecated @InterfaceAudience.Public @InterfaceStability.Stable public class TableRecordReader
Iterate over an HBase table data, return (Text, RowResult) pairs
| Constructor Summary | |
|---|---|
TableRecordReader()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
close()
Deprecated. |
ImmutableBytesWritable |
createKey()
Deprecated. |
Result |
createValue()
Deprecated. |
long |
getPos()
Deprecated. |
float |
getProgress()
Deprecated. |
void |
init()
Deprecated. Build the scanner. |
boolean |
next(ImmutableBytesWritable key,
Result value)
Deprecated. |
void |
restart(byte[] firstRow)
Deprecated. Restart from survivable exceptions by creating a new scanner. |
void |
setEndRow(byte[] endRow)
Deprecated. |
void |
setHTable(HTable htable)
Deprecated. |
void |
setInputColumns(byte[][] inputColumns)
Deprecated. |
void |
setRowFilter(Filter rowFilter)
Deprecated. |
void |
setStartRow(byte[] startRow)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableRecordReader()
| Method Detail |
|---|
public void restart(byte[] firstRow)
throws IOException
firstRow -
IOException
public void init()
throws IOException
IOExceptionpublic void setHTable(HTable htable)
htable - the HTable 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()
close in interface org.apache.hadoop.mapred.RecordReader<ImmutableBytesWritable,Result>public ImmutableBytesWritable createKey()
createKey in interface org.apache.hadoop.mapred.RecordReader<ImmutableBytesWritable,Result>RecordReader.createKey()public Result createValue()
createValue in interface org.apache.hadoop.mapred.RecordReader<ImmutableBytesWritable,Result>RecordReader.createValue()public long getPos()
getPos in interface org.apache.hadoop.mapred.RecordReader<ImmutableBytesWritable,Result>public float getProgress()
getProgress in interface org.apache.hadoop.mapred.RecordReader<ImmutableBytesWritable,Result>
public boolean next(ImmutableBytesWritable key,
Result value)
throws IOException
next in interface org.apache.hadoop.mapred.RecordReader<ImmutableBytesWritable,Result>key - HStoreKey as input key.value - MapWritable as input value
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||