|
||||||||||
| 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.HFileReaderV2.AbstractScannerV2
org.apache.hadoop.hbase.io.hfile.HFileReaderV2.EncodedScannerV2
protected static class HFileReaderV2.EncodedScannerV2
ScannerV2 that operates on encoded data blocks.
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.hbase.io.hfile.HFileReaderV2.AbstractScannerV2 |
|---|
block, nextIndexedKey |
| Fields inherited from class org.apache.hadoop.hbase.io.hfile.AbstractHFileReader.Scanner |
|---|
blockBuffer, blockFetches, cacheBlocks, currKeyLen, currMemstoreTS, currMemstoreTSLen, currValueLen, isCompaction, pread, reader |
| Constructor Summary | |
|---|---|
HFileReaderV2.EncodedScannerV2(HFileReaderV2 reader,
boolean cacheBlocks,
boolean pread,
boolean isCompaction,
boolean includesMemstoreTS)
|
|
| Method Summary | |
|---|---|
protected ByteBuffer |
getFirstKeyInBlock(HFileBlock curBlock)
|
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 int |
loadBlockAndSeekToKey(HFileBlock seekToBlock,
byte[] nextIndexedKey,
boolean rewind,
byte[] key,
int offset,
int length,
boolean seekBefore)
|
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.HFileReaderV2.AbstractScannerV2 |
|---|
readNextDataBlock, reseekTo, seekBefore, seekTo, 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 HFileReaderV2.EncodedScannerV2(HFileReaderV2 reader,
boolean cacheBlocks,
boolean pread,
boolean isCompaction,
boolean includesMemstoreTS)
| Method Detail |
|---|
public boolean seekTo()
throws IOException
HFileScanner
IOException
public boolean next()
throws IOException
HFileScanner
IOExceptionpublic ByteBuffer getKey()
HFileScannerHFileScanner.seekTo(byte[]) before this method.
public ByteBuffer getValue()
HFileScannerHFileScanner.seekTo(byte[]) before this method.
public KeyValue getKeyValue()
KeyValue.public String getKeyString()
HFileScannerHFileScanner.seekTo(byte[]) before this method.
public String getValueString()
HFileScannerHFileScanner.seekTo(byte[]) before this method.
protected ByteBuffer getFirstKeyInBlock(HFileBlock curBlock)
getFirstKeyInBlock in class HFileReaderV2.AbstractScannerV2
protected int loadBlockAndSeekToKey(HFileBlock seekToBlock,
byte[] nextIndexedKey,
boolean rewind,
byte[] key,
int offset,
int length,
boolean seekBefore)
throws IOException
loadBlockAndSeekToKey in class HFileReaderV2.AbstractScannerV2IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||