public final class Lucene50PostingsReader extends PostingsReaderBase
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
Lucene50PostingsReader.BlockDocsEnum |
(package private) class |
Lucene50PostingsReader.BlockImpactsEverythingEnum |
(package private) class |
Lucene50PostingsReader.BlockImpactsPostingsEnum |
(package private) class |
Lucene50PostingsReader.EverythingEnum |
| Modifier and Type | Field and Description |
|---|---|
private static long |
BASE_RAM_BYTES_USED |
private IndexInput |
docIn |
(package private) ForUtil |
forUtil |
private IndexInput |
payIn |
private IndexInput |
posIn |
private int |
version |
| Constructor and Description |
|---|
Lucene50PostingsReader(SegmentReadState state)
Sole constructor.
|
| 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.
|
(package private) static void |
readVIntBlock(IndexInput docIn,
int[] docBuffer,
int[] freqBuffer,
int num,
boolean indexHasFreq)
Read values that have been written using variable-length encoding instead of bit-packing.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildResourcesprivate static final long BASE_RAM_BYTES_USED
private final IndexInput docIn
private final IndexInput posIn
private final IndexInput payIn
final ForUtil forUtil
private int version
public Lucene50PostingsReader(SegmentReadState state) throws java.io.IOException
java.io.IOExceptionpublic void init(IndexInput termsIn, SegmentReadState state) throws java.io.IOException
PostingsReaderBaseIndexInput.init in class PostingsReaderBasejava.io.IOExceptionstatic void readVIntBlock(IndexInput docIn, int[] docBuffer, int[] freqBuffer, int num, boolean indexHasFreq) throws java.io.IOException
java.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 PostingsEnum postings(FieldInfo fieldInfo, BlockTermState termState, PostingsEnum reuse, int flags) throws java.io.IOException
PostingsReaderBasepostings in class PostingsReaderBasejava.io.IOExceptionpublic ImpactsEnum impacts(FieldInfo fieldInfo, BlockTermState state, int flags) throws java.io.IOException
PostingsReaderBaseImpactsEnum that computes impacts with scorer.impacts in class PostingsReaderBasejava.io.IOExceptionPostingsReaderBase.postings(FieldInfo, BlockTermState, PostingsEnum, int)public long ramBytesUsed()
Accountablepublic void checkIntegrity()
throws java.io.IOException
PostingsReaderBaseNote 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 PostingsReaderBasejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object