protected class PosBlockIndexInput.PosBlockReader extends BlockIndexInput.BlockReader
BlockReader for the .pos file.
Read and decode blocks containing the the term positions.
in| Modifier and Type | Method and Description |
|---|---|
protected void |
initBlock()
Init reader for new block
|
boolean |
isExhausted() |
int |
nextPosition()
Decode and return the next position of the current block.
|
protected void |
readHeader()
Read and decode block header
|
void |
resetCurrentPosition() |
protected void |
skipData()
Skip remaining data in the block and advance input stream pointer.
|
getMinimumBufferSize, init, nextBlock, seekprotected void readHeader()
throws IOException
BlockIndexInput.BlockReaderreadHeader in class BlockIndexInput.BlockReaderIOExceptionprotected void skipData()
throws IOException
BlockIndexInput.BlockReaderskipData in class BlockIndexInput.BlockReaderIOExceptionpublic int nextPosition()
throws IOException
IOExceptionpublic boolean isExhausted()
isExhausted in class BlockIndexInput.BlockReaderprotected void initBlock()
BlockIndexInput.BlockReaderinitBlock in class BlockIndexInput.BlockReaderpublic void resetCurrentPosition()
Copyright © 2014. All rights reserved.