final class IDVersionPostingsReader extends PostingsReaderBase
Constructor and Description |
---|
IDVersionPostingsReader() |
Modifier and Type | Method and Description |
---|---|
void |
checkIntegrity()
Checks consistency of this reader.
|
void |
close() |
void |
decodeTerm(long[] longs,
DataInput in,
FieldInfo fieldInfo,
BlockTermState _termState,
boolean absolute)
Actually decode metadata for next term
|
ImpactsEnum |
impacts(FieldInfo fieldInfo,
BlockTermState state,
int flags)
Return a
ImpactsEnum that computes impacts with scorer . |
void |
init(IndexInput termsIn,
SegmentReadState state)
Performs any initialization, such as reading and
verifying the header from the provided terms
dictionary
IndexInput . |
BlockTermState |
newTermState()
Return a newly created empty TermState
|
PostingsEnum |
postings(FieldInfo fieldInfo,
BlockTermState termState,
PostingsEnum reuse,
int flags)
Must fully consume state, since after this call that
TermState may be reused.
|
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildResources
public void init(IndexInput termsIn, SegmentReadState state) throws java.io.IOException
PostingsReaderBase
IndexInput
.init
in class PostingsReaderBase
java.io.IOException
public BlockTermState newTermState()
PostingsReaderBase
newTermState
in class PostingsReaderBase
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class PostingsReaderBase
java.io.IOException
public void decodeTerm(long[] longs, DataInput in, FieldInfo fieldInfo, BlockTermState _termState, boolean absolute) throws java.io.IOException
PostingsReaderBase
decodeTerm
in class PostingsReaderBase
java.io.IOException
PostingsWriterBase.encodeTerm(long[], org.apache.lucene.store.DataOutput, org.apache.lucene.index.FieldInfo, org.apache.lucene.codecs.BlockTermState, boolean)
public PostingsEnum postings(FieldInfo fieldInfo, BlockTermState termState, PostingsEnum reuse, int flags) throws java.io.IOException
PostingsReaderBase
postings
in class PostingsReaderBase
java.io.IOException
public ImpactsEnum impacts(FieldInfo fieldInfo, BlockTermState state, int flags) throws java.io.IOException
PostingsReaderBase
ImpactsEnum
that computes impacts with scorer
.impacts
in class PostingsReaderBase
java.io.IOException
PostingsReaderBase.postings(FieldInfo, BlockTermState, PostingsEnum, int)
public long ramBytesUsed()
Accountable
public void checkIntegrity() throws java.io.IOException
PostingsReaderBase
Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
checkIntegrity
in class PostingsReaderBase
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object