|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.io.hfile.AbstractHFileReader.Scanner
org.apache.hadoop.hbase.io.hfile.HFileReaderV1.AbstractScannerV1
org.apache.hadoop.hbase.io.hfile.HFileReaderV1.ScannerV1
protected static class HFileReaderV1.ScannerV1
Implementation of HFileScanner interface.
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.hbase.io.hfile.HFileReaderV1.AbstractScannerV1 |
|---|
currBlock |
| Fields inherited from class org.apache.hadoop.hbase.io.hfile.AbstractHFileReader.Scanner |
|---|
blockBuffer, blockFetches, cacheBlocks, currKeyLen, currMemstoreTS, currMemstoreTSLen, currValueLen, isCompaction, pread |
| Constructor Summary | |
|---|---|
HFileReaderV1.ScannerV1(HFileReaderV1 reader,
boolean cacheBlocks,
boolean pread,
boolean isCompaction)
|
|
| Method Summary | |
|---|---|
protected int |
blockSeek(byte[] key,
int offset,
int length,
boolean seekBefore)
Within a loaded block, seek looking for the first key that is smaller than (or equal to?) the key we are interested in. |
ByteBuffer |
getKey()
Gets a buffer view to the current key. |
String |
getKeyString()
Convenience method to get a copy of the key as a string - interpreting the bytes as UTF8. |
KeyValue |
getKeyValue()
|
ByteBuffer |
getValue()
Gets a buffer view to the current value. |
String |
getValueString()
Convenience method to get a copy of the value as a string - interpreting the bytes as UTF8. |
protected void |
loadBlock(int bloc,
boolean rewind)
|
boolean |
next()
Scans to the next entry in the file. |
boolean |
seekTo()
Positions this scanner at the start of the file. |
| Methods inherited from class org.apache.hadoop.hbase.io.hfile.HFileReaderV1.AbstractScannerV1 |
|---|
reseekTo, seekBefore, seekTo |
| Methods inherited from class org.apache.hadoop.hbase.io.hfile.AbstractHFileReader.Scanner |
|---|
assertSeeked, getReader, isSeeked, reseekTo, seekBefore, seekTo, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HFileReaderV1.ScannerV1(HFileReaderV1 reader,
boolean cacheBlocks,
boolean pread,
boolean isCompaction)
| Method Detail |
|---|
public KeyValue getKeyValue()
KeyValue.public ByteBuffer getKey()
HFileScannerHFileScanner.seekTo(byte[]) before this method.
public ByteBuffer getValue()
HFileScannerHFileScanner.seekTo(byte[]) before this method.
public boolean next()
throws IOException
HFileScanner
IOException
protected int blockSeek(byte[] key,
int offset,
int length,
boolean seekBefore)
HFileReaderV1.AbstractScannerV1
blockSeek in class HFileReaderV1.AbstractScannerV1key - to findseekBefore - find the key before the exact match.public String getKeyString()
HFileScannerHFileScanner.seekTo(byte[]) before this method.
public String getValueString()
HFileScannerHFileScanner.seekTo(byte[]) before this method.
public boolean seekTo()
throws IOException
HFileScanner
IOException
protected void loadBlock(int bloc,
boolean rewind)
throws IOException
loadBlock in class HFileReaderV1.AbstractScannerV1IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||