protected static class HFileReaderImpl.EncodedScanner extends HFileReaderImpl.HFileScannerImpl
blockFetches, cacheBlocks, curBlock, isCompaction, nextIndexedKey, pread, prevBlocks, reader| 构造器和说明 |
|---|
EncodedScanner(HFile.Reader reader,
boolean cacheBlocks,
boolean pread,
boolean isCompaction,
HFileContext meta) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareKey(CellComparator comparator,
Cell key) |
Cell |
getCell() |
protected Cell |
getFirstKeyCellInBlock(HFileBlock curBlock) |
Cell |
getKey()
Gets the current key in the form of a cell.
|
String |
getKeyString()
Convenience method to get a copy of the key as a string - interpreting the
bytes as UTF8.
|
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()
Go to the next key/value in the block section.
|
protected boolean |
processFirstDataBlock() |
void |
setNonSeekedState() |
protected void |
updateCurrentBlock(HFileBlock newBlock)
Updates the current block to be the given
HFileBlock. |
assertSeeked, blockSeek, checkKeyLen, checkKeyValueLen, checkLen, close, getEffectiveDataBlockEncoding, getNextIndexedKey, getReader, readAndUpdateNewBlock, readKeyValueLen, readMvccVersion, readNextDataBlock, reseekTo, seekBefore, seekTo, seekTo, seekTo, shipped, toStringpublic EncodedScanner(HFile.Reader reader, boolean cacheBlocks, boolean pread, boolean isCompaction, HFileContext meta)
public boolean isSeeked()
isSeeked 在接口中 HFileScannerisSeeked 在类中 HFileReaderImpl.HFileScannerImplHFileScanner.seekBefore(Cell) or HFileScanner.seekTo() or HFileScanner.seekTo(Cell).
Otherwise returns false.public void setNonSeekedState()
protected void updateCurrentBlock(HFileBlock newBlock) throws CorruptHFileException
HFileBlock. Seeks to
the the first key/value pair.updateCurrentBlock 在类中 HFileReaderImpl.HFileScannerImplnewBlock - the block to make currentCorruptHFileExceptionprotected boolean processFirstDataBlock()
throws IOException
public boolean next()
throws IOException
HFileReaderImpl.HFileScannerImplHFileReaderImpl.HFileScannerImpl.getKey() and HFileReaderImpl.HFileScannerImpl.getValue() can
be called.next 在接口中 HFileScannernext 在类中 HFileReaderImpl.HFileScannerImplIOExceptionpublic Cell getKey()
HFileScannerHFileScanner.seekTo(Cell) before this method.getKey 在接口中 HFileScannergetKey 在类中 HFileReaderImpl.HFileScannerImplpublic ByteBuffer getValue()
HFileScannerHFileScanner.seekTo(Cell) before this method.getValue 在接口中 HFileScannergetValue 在类中 HFileReaderImpl.HFileScannerImplpublic Cell getCell()
getCell 在接口中 HFileScannergetCell 在类中 HFileReaderImpl.HFileScannerImplCell.public String getKeyString()
HFileScannerHFileScanner.seekTo(Cell) before this method.getKeyString 在接口中 HFileScannergetKeyString 在类中 HFileReaderImpl.HFileScannerImplpublic String getValueString()
HFileScannerHFileScanner.seekTo(Cell) before this method.getValueString 在接口中 HFileScannergetValueString 在类中 HFileReaderImpl.HFileScannerImplprotected Cell getFirstKeyCellInBlock(HFileBlock curBlock)
protected int loadBlockAndSeekToKey(HFileBlock seekToBlock, Cell nextIndexedKey, boolean rewind, Cell key, boolean seekBefore) throws IOException
public int compareKey(CellComparator comparator, Cell key)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.