protected abstract static class HFileReaderV1.AbstractScannerV1 extends AbstractHFileReader.Scanner
Modifier and Type | Field and Description |
---|---|
protected int |
currBlock |
protected HFileReaderV1 |
reader
This masks a field with the same name in the superclass and saves us the
runtime overhead of casting from abstract reader to reader V1.
|
blockBuffer, blockFetches, cacheBlocks, currKeyLen, currMemstoreTS, currMemstoreTSLen, currValueLen, isCompaction, pread
Constructor and Description |
---|
HFileReaderV1.AbstractScannerV1(HFileReaderV1 reader,
boolean cacheBlocks,
boolean pread,
boolean isCompaction) |
Modifier and Type | Method and Description |
---|---|
protected abstract 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.
|
protected abstract void |
loadBlock(int bloc,
boolean rewind) |
int |
reseekTo(byte[] key,
int offset,
int length) |
boolean |
seekBefore(byte[] key,
int offset,
int length) |
int |
seekTo(byte[] key,
int offset,
int length) |
assertSeeked, getReader, isSeeked, reseekTo, seekBefore, seekTo, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getKey, getKeyString, getKeyValue, getValue, getValueString, next, seekTo
protected int currBlock
protected HFileReaderV1 reader
public HFileReaderV1.AbstractScannerV1(HFileReaderV1 reader, boolean cacheBlocks, boolean pread, boolean isCompaction)
protected abstract int blockSeek(byte[] key, int offset, int length, boolean seekBefore)
key
- to findseekBefore
- find the key before the exact match.protected abstract void loadBlock(int bloc, boolean rewind) throws IOException
IOException
public int seekTo(byte[] key, int offset, int length) throws IOException
IOException
public int reseekTo(byte[] key, int offset, int length) throws IOException
IOException
public boolean seekBefore(byte[] key, int offset, int length) throws IOException
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.