public final class Lucene41PostingsReader extends PostingsReaderBase
for details| Constructor and Description |
|---|
Lucene41PostingsReader(Directory dir,
FieldInfos fieldInfos,
SegmentInfo segmentInfo,
IOContext ioContext,
java.lang.String segmentSuffix)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
decodeTerm(long[] longs,
DataInput in,
FieldInfo fieldInfo,
BlockTermState _termState,
boolean absolute)
Actually decode metadata for next term
|
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. |
BlockTermState |
newTermState()
Return a newly created empty TermState
|
long |
ramBytesUsed()
Returns approximate RAM bytes used
|
public Lucene41PostingsReader(Directory dir, FieldInfos fieldInfos, SegmentInfo segmentInfo, IOContext ioContext, java.lang.String segmentSuffix) throws java.io.IOException
java.io.IOExceptionpublic void init(IndexInput termsIn) throws java.io.IOException
PostingsReaderBaseIndexInput.init in class PostingsReaderBasejava.io.IOExceptionpublic BlockTermState newTermState()
PostingsReaderBasenewTermState in class PostingsReaderBasepublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class PostingsReaderBasejava.io.IOExceptionpublic void decodeTerm(long[] longs,
DataInput in,
FieldInfo fieldInfo,
BlockTermState _termState,
boolean absolute)
throws java.io.IOException
PostingsReaderBasedecodeTerm in class PostingsReaderBasejava.io.IOExceptionPostingsWriterBase.encodeTerm(long[], org.apache.lucene.store.DataOutput, org.apache.lucene.index.FieldInfo, org.apache.lucene.codecs.BlockTermState, boolean)public DocsEnum docs(FieldInfo fieldInfo, BlockTermState termState, Bits liveDocs, DocsEnum reuse, int flags) throws java.io.IOException
PostingsReaderBasedocs in class PostingsReaderBasejava.io.IOExceptionpublic DocsAndPositionsEnum docsAndPositions(FieldInfo fieldInfo, BlockTermState termState, Bits liveDocs, DocsAndPositionsEnum reuse, int flags) throws java.io.IOException
PostingsReaderBasedocsAndPositions in class PostingsReaderBasejava.io.IOExceptionpublic long ramBytesUsed()
PostingsReaderBaseramBytesUsed in class PostingsReaderBaseCopyright © 2010 - 2024 Adobe. All Rights Reserved