protected class NodBlockIndexInput.NodBlockReader extends BlockIndexInput.BlockReader
BlockReader for the .nod file.
Read and decode blocks containing the the node labels and term frequencies.
in| Modifier and Type | Method and Description |
|---|---|
void |
initBlock()
Init reader for new block
|
boolean |
isExhausted() |
org.apache.lucene.util.IntsRef |
nextNode()
Decode and return the next node label of the current block.
|
int |
nextTermFreqInNode()
Decode and return the next term frequency of the current block.
|
protected void |
readHeader()
Read and decode block header
|
void |
resetCurrentNode() |
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 org.apache.lucene.util.IntsRef nextNode()
throws IOException
The IntsRef returned is a slice of the uncompressed node block.
IOExceptionpublic int nextTermFreqInNode()
throws IOException
IOExceptionpublic boolean isExhausted()
isExhausted in class BlockIndexInput.BlockReaderpublic void initBlock()
BlockIndexInput.BlockReaderinitBlock in class BlockIndexInput.BlockReaderpublic void resetCurrentNode()
Copyright © 2014. All rights reserved.