|
||||||||||
| 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.ScannerV2
protected static class HFileReaderV2.ScannerV2
Implementation of HFileScanner interface.
| 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 |
| Constructor Summary | |
|---|---|
HFileReaderV2.ScannerV2(HFileReaderV2 r,
boolean cacheBlocks,
boolean pread,
boolean isCompaction)
|
|
| 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()
Go to the next key/value in the block section. |
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.ScannerV2(HFileReaderV2 r,
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
getKey() and getValue() can
be called.
IOException
public boolean seekTo()
throws IOException
IOException
protected int loadBlockAndSeekToKey(HFileBlock seekToBlock,
byte[] nextIndexedKey,
boolean rewind,
byte[] key,
int offset,
int length,
boolean seekBefore)
throws IOException
loadBlockAndSeekToKey in class HFileReaderV2.AbstractScannerV2IOExceptionprotected ByteBuffer getFirstKeyInBlock(HFileBlock curBlock)
getFirstKeyInBlock in class HFileReaderV2.AbstractScannerV2public String getKeyString()
HFileScannerHFileScanner.seekTo(byte[]) before this method.
public String getValueString()
HFileScannerHFileScanner.seekTo(byte[]) before this method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||