protected abstract class BlockIndexInput.BlockReader extends Object
The abstraction provides an interface to iterate over the blocks. Subclasses must implement an interface to iterate over the data within a block.
Modifier and Type | Field and Description |
---|---|
protected org.apache.lucene.store.IndexInput |
in
Each block reader should have their own clone of the
IndexInput |
Modifier | Constructor and Description |
---|---|
protected |
BlockIndexInput.BlockReader(org.apache.lucene.store.IndexInput in) |
Modifier and Type | Method and Description |
---|---|
protected int |
getMinimumBufferSize(int bufferSize,
int windowSize)
Compute the minimum size of a buffer based on the required size and
the decompression window size.
|
void |
init()
Init reader
|
protected abstract void |
initBlock()
Init reader for new block
|
abstract boolean |
isExhausted() |
void |
nextBlock()
Move to the next block and decode block header
|
protected abstract void |
readHeader()
Read and decode block header
|
void |
seek(long fp) |
protected abstract void |
skipData()
Skip remaining data in the block and advance input stream pointer.
|
protected final org.apache.lucene.store.IndexInput in
IndexInput
protected BlockIndexInput.BlockReader(org.apache.lucene.store.IndexInput in)
public void init()
public void nextBlock() throws IOException
IOException
protected abstract void initBlock()
public abstract boolean isExhausted()
protected abstract void readHeader() throws IOException
IOException
protected abstract void skipData() throws IOException
IOException
public void seek(long fp)
protected int getMinimumBufferSize(int bufferSize, int windowSize)
Copyright © 2014. All rights reserved.