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