public abstract class PostingsReaderBase extends java.lang.Object implements java.io.Closeable, Accountable
PostingsEnum and
PostingsEnum instances. It provides an
IndexInput (termsIn) where this class may read any
previously stored data that it had written in its
corresponding PostingsWriterBase at indexing
time.| Modifier | Constructor and Description |
|---|---|
protected |
PostingsReaderBase()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
checkIntegrity()
Checks consistency of this reader.
|
abstract void |
close() |
abstract void |
decodeTerm(long[] longs,
DataInput in,
FieldInfo fieldInfo,
BlockTermState state,
boolean absolute)
Actually decode metadata for next term
|
abstract void |
init(IndexInput termsIn,
SegmentReadState state)
Performs any initialization, such as reading and
verifying the header from the provided terms
dictionary
IndexInput. |
abstract BlockTermState |
newTermState()
Return a newly created empty TermState
|
abstract PostingsEnum |
postings(FieldInfo fieldInfo,
BlockTermState state,
PostingsEnum reuse,
int flags)
Must fully consume state, since after this call that
TermState may be reused.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildResources, ramBytesUsedprotected PostingsReaderBase()
public abstract void init(IndexInput termsIn, SegmentReadState state) throws java.io.IOException
IndexInput.java.io.IOExceptionpublic abstract BlockTermState newTermState() throws java.io.IOException
java.io.IOExceptionpublic abstract void decodeTerm(long[] longs,
DataInput in,
FieldInfo fieldInfo,
BlockTermState state,
boolean absolute)
throws java.io.IOException
public abstract PostingsEnum postings(FieldInfo fieldInfo, BlockTermState state, PostingsEnum reuse, int flags) throws java.io.IOException
java.io.IOExceptionpublic abstract void checkIntegrity()
throws java.io.IOException
Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
java.io.IOExceptionpublic abstract void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.