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, seek
protected void readHeader() throws IOException
BlockIndexInput.BlockReader
readHeader
in class BlockIndexInput.BlockReader
IOException
protected void skipData() throws IOException
BlockIndexInput.BlockReader
skipData
in class BlockIndexInput.BlockReader
IOException
public org.apache.lucene.util.IntsRef nextNode() throws IOException
The IntsRef
returned is a slice of the uncompressed node block.
IOException
public int nextTermFreqInNode() throws IOException
IOException
public boolean isExhausted()
isExhausted
in class BlockIndexInput.BlockReader
public void initBlock()
BlockIndexInput.BlockReader
initBlock
in class BlockIndexInput.BlockReader
public void resetCurrentNode()
Copyright © 2014. All rights reserved.