public final class Lucene41PostingsReader extends PostingsReaderBase
for details
Constructor and Description |
---|
Lucene41PostingsReader(Directory dir,
FieldInfos fieldInfos,
SegmentInfo segmentInfo,
IOContext ioContext,
String segmentSuffix)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
DocsEnum |
docs(FieldInfo fieldInfo,
BlockTermState termState,
Bits liveDocs,
DocsEnum reuse,
int flags)
Must fully consume state, since after this call that
TermState may be reused.
|
DocsAndPositionsEnum |
docsAndPositions(FieldInfo fieldInfo,
BlockTermState termState,
Bits liveDocs,
DocsAndPositionsEnum reuse,
int flags)
Must fully consume state, since after this call that
TermState may be reused.
|
void |
init(IndexInput termsIn)
Performs any initialization, such as reading and
verifying the header from the provided terms
dictionary
IndexInput . |
org.apache.lucene.codecs.lucene41.Lucene41PostingsReader.IntBlockTermState |
newTermState()
Return a newly created empty TermState
|
void |
nextTerm(FieldInfo fieldInfo,
BlockTermState _termState)
Actually decode metadata for next term
|
void |
readTermsBlock(IndexInput termsIn,
FieldInfo fieldInfo,
BlockTermState _termState)
Reads data for all terms in the next block; this
method should merely load the byte[] blob but not
decode, which is done in
PostingsReaderBase.nextTerm(org.apache.lucene.index.FieldInfo, org.apache.lucene.codecs.BlockTermState) . |
public Lucene41PostingsReader(Directory dir, FieldInfos fieldInfos, SegmentInfo segmentInfo, IOContext ioContext, String segmentSuffix) throws IOException
IOException
public void init(IndexInput termsIn) throws IOException
PostingsReaderBase
IndexInput
.init
in class PostingsReaderBase
IOException
public org.apache.lucene.codecs.lucene41.Lucene41PostingsReader.IntBlockTermState newTermState()
PostingsReaderBase
newTermState
in class PostingsReaderBase
public void close() throws IOException
close
in interface Closeable
close
in class PostingsReaderBase
IOException
public void readTermsBlock(IndexInput termsIn, FieldInfo fieldInfo, BlockTermState _termState) throws IOException
PostingsReaderBase
PostingsReaderBase.nextTerm(org.apache.lucene.index.FieldInfo, org.apache.lucene.codecs.BlockTermState)
.readTermsBlock
in class PostingsReaderBase
IOException
public void nextTerm(FieldInfo fieldInfo, BlockTermState _termState) throws IOException
PostingsReaderBase
nextTerm
in class PostingsReaderBase
IOException
public DocsEnum docs(FieldInfo fieldInfo, BlockTermState termState, Bits liveDocs, DocsEnum reuse, int flags) throws IOException
PostingsReaderBase
docs
in class PostingsReaderBase
IOException
public DocsAndPositionsEnum docsAndPositions(FieldInfo fieldInfo, BlockTermState termState, Bits liveDocs, DocsAndPositionsEnum reuse, int flags) throws IOException
PostingsReaderBase
docsAndPositions
in class PostingsReaderBase
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.