Class LuceneOptimizedPostingsReader
java.lang.Object
org.apache.lucene.codecs.PostingsReaderBase
org.apache.lucene.codecs.lucene84.LuceneOptimizedPostingsReader
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.lucene.util.Accountable
public final class LuceneOptimizedPostingsReader
extends org.apache.lucene.codecs.PostingsReaderBase
Concrete class that reads docId(maybe frq,pos,offset,payloads) list
with postings format.
Borrowed from Lucene.
This implementation skips the reading and validation of checksums to limit the data required to be read to process a
query.
-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionLuceneOptimizedPostingsReader(org.apache.lucene.index.SegmentReadState state) Sole constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()voiddecodeTerm(org.apache.lucene.store.DataInput in, org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.codecs.BlockTermState _termState, boolean absolute) org.apache.lucene.index.ImpactsEnumimpacts(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.codecs.BlockTermState state, int flags) voidinit(org.apache.lucene.store.IndexInput termsIn, org.apache.lucene.index.SegmentReadState state) org.apache.lucene.codecs.BlockTermStateorg.apache.lucene.index.PostingsEnumpostings(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.codecs.BlockTermState termState, org.apache.lucene.index.PostingsEnum reuse, int flags) longtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Constructor Details
-
LuceneOptimizedPostingsReader
public LuceneOptimizedPostingsReader(org.apache.lucene.index.SegmentReadState state) throws IOException Sole constructor.- Parameters:
state- state- Throws:
IOException- exception
-
-
Method Details
-
init
public void init(org.apache.lucene.store.IndexInput termsIn, org.apache.lucene.index.SegmentReadState state) throws IOException - Specified by:
initin classorg.apache.lucene.codecs.PostingsReaderBase- Throws:
IOException
-
newTermState
public org.apache.lucene.codecs.BlockTermState newTermState()- Specified by:
newTermStatein classorg.apache.lucene.codecs.PostingsReaderBase
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classorg.apache.lucene.codecs.PostingsReaderBase- Throws:
IOException
-
decodeTerm
public void decodeTerm(org.apache.lucene.store.DataInput in, org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.codecs.BlockTermState _termState, boolean absolute) throws IOException - Specified by:
decodeTermin classorg.apache.lucene.codecs.PostingsReaderBase- Throws:
IOException
-
postings
public org.apache.lucene.index.PostingsEnum postings(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.codecs.BlockTermState termState, org.apache.lucene.index.PostingsEnum reuse, int flags) throws IOException - Specified by:
postingsin classorg.apache.lucene.codecs.PostingsReaderBase- Throws:
IOException
-
impacts
public org.apache.lucene.index.ImpactsEnum impacts(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.codecs.BlockTermState state, int flags) throws IOException - Specified by:
impactsin classorg.apache.lucene.codecs.PostingsReaderBase- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed() -
checkIntegrity
- Specified by:
checkIntegrityin classorg.apache.lucene.codecs.PostingsReaderBase- Throws:
IOException
-
toString
-