Class Lucene912PostingsReader
- java.lang.Object
-
- org.apache.lucene.codecs.PostingsReaderBase
-
- org.apache.lucene.codecs.lucene912.Lucene912PostingsReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class Lucene912PostingsReader extends PostingsReaderBase
Concrete class that reads docId(maybe frq,pos,offset,payloads) list with postings format.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description Lucene912PostingsReader(SegmentReadState state)Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckIntegrity()Checks consistency of this reader.voidclose()voiddecodeTerm(DataInput in, FieldInfo fieldInfo, BlockTermState _termState, boolean absolute)Actually decode metadata for next termImpactsEnumimpacts(FieldInfo fieldInfo, BlockTermState state, int flags)Return aImpactsEnumthat computes impacts withscorer.voidinit(IndexInput termsIn, SegmentReadState state)Performs any initialization, such as reading and verifying the header from the provided terms dictionaryIndexInput.BlockTermStatenewTermState()Return a newly created empty TermStatePostingsEnumpostings(FieldInfo fieldInfo, BlockTermState termState, PostingsEnum reuse, int flags)Must fully consume state, since after this call that TermState may be reused.StringtoString()
-
-
-
Constructor Detail
-
Lucene912PostingsReader
public Lucene912PostingsReader(SegmentReadState state) throws IOException
Sole constructor.- Throws:
IOException
-
-
Method Detail
-
init
public void init(IndexInput termsIn, SegmentReadState state) throws IOException
Description copied from class:PostingsReaderBasePerforms any initialization, such as reading and verifying the header from the provided terms dictionaryIndexInput.- Specified by:
initin classPostingsReaderBase- Throws:
IOException
-
newTermState
public BlockTermState newTermState()
Description copied from class:PostingsReaderBaseReturn a newly created empty TermState- Specified by:
newTermStatein classPostingsReaderBase
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classPostingsReaderBase- Throws:
IOException
-
decodeTerm
public void decodeTerm(DataInput in, FieldInfo fieldInfo, BlockTermState _termState, boolean absolute) throws IOException
Description copied from class:PostingsReaderBaseActually decode metadata for next term
-
postings
public PostingsEnum postings(FieldInfo fieldInfo, BlockTermState termState, PostingsEnum reuse, int flags) throws IOException
Description copied from class:PostingsReaderBaseMust fully consume state, since after this call that TermState may be reused.- Specified by:
postingsin classPostingsReaderBase- Throws:
IOException
-
impacts
public ImpactsEnum impacts(FieldInfo fieldInfo, BlockTermState state, int flags) throws IOException
Description copied from class:PostingsReaderBaseReturn aImpactsEnumthat computes impacts withscorer.- Specified by:
impactsin classPostingsReaderBase- Throws:
IOException- See Also:
PostingsReaderBase.postings(FieldInfo, BlockTermState, PostingsEnum, int)
-
checkIntegrity
public void checkIntegrity() throws IOExceptionDescription copied from class:PostingsReaderBaseChecks consistency of this reader.Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
- Specified by:
checkIntegrityin classPostingsReaderBase- Throws:
IOException
-
-