protected static class HFileReaderV2.EncodedScannerV2 extends HFileReaderV2.AbstractScannerV2
| 限定符和类型 | 字段和说明 |
|---|---|
protected HFileContext |
meta |
block, nextIndexedKeyblockBuffer, blockFetches, cacheBlocks, currKeyLen, currMemstoreTS, currMemstoreTSLen, currValueLen, isCompaction, pread, reader| 构造器和说明 |
|---|
HFileReaderV2.EncodedScannerV2(HFileReaderV2 reader,
boolean cacheBlocks,
boolean pread,
boolean isCompaction,
HFileContext meta) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareKey(KeyValue.KVComparator comparator,
byte[] key,
int offset,
int length)
Compare the given key against the current key
|
int |
compareKey(KeyValue.KVComparator comparator,
Cell key) |
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.
|
Cell |
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.
|
boolean |
isSeeked() |
protected int |
loadBlockAndSeekToKey(HFileBlock seekToBlock,
Cell nextIndexedKey,
boolean rewind,
Cell key,
boolean seekBefore) |
boolean |
next()
Scans to the next entry in the file.
|
boolean |
seekTo()
Positions this scanner at the start of the file.
|
getEffectiveDataBlockEncoding, getNextIndexedKey, readNextDataBlock, reseekTo, reseekTo, seekBefore, seekBefore, seekTo, seekTo, seekToassertSeeked, close, getReader, reseekTo, seekBefore, seekTo, toStringprotected final HFileContext meta
public HFileReaderV2.EncodedScannerV2(HFileReaderV2 reader, boolean cacheBlocks, boolean pread, boolean isCompaction, HFileContext meta)
public boolean isSeeked()
isSeeked 在接口中 HFileScannerisSeeked 在类中 AbstractHFileReader.ScannerHFileScanner.seekBefore(byte[]) or HFileScanner.seekTo() or HFileScanner.seekTo(byte[]).
Otherwise returns false.public boolean seekTo()
throws IOException
HFileScannerIOExceptionpublic boolean next()
throws IOException
HFileScannerIOExceptionpublic ByteBuffer getKey()
HFileScannerHFileScanner.seekTo(byte[]) before this method.public int compareKey(KeyValue.KVComparator comparator, byte[] key, int offset, int length)
HFileReaderV2.AbstractScannerV2compareKey 在类中 HFileReaderV2.AbstractScannerV2public ByteBuffer getValue()
HFileScannerHFileScanner.seekTo(byte[]) before this method.public String getKeyString()
HFileScannerHFileScanner.seekTo(byte[]) before this method.public String getValueString()
HFileScannerHFileScanner.seekTo(byte[]) before this method.protected ByteBuffer getFirstKeyInBlock(HFileBlock curBlock)
protected int loadBlockAndSeekToKey(HFileBlock seekToBlock, Cell nextIndexedKey, boolean rewind, Cell key, boolean seekBefore) throws IOException
public int compareKey(KeyValue.KVComparator comparator, Cell key)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.