Class Lucene912PostingsReader.BlockImpactsEnum
java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.PostingsEnum
org.apache.lucene.index.ImpactsEnum
org.apache.lucene.backward_codecs.lucene912.Lucene912PostingsReader.BlockImpactsEnum
- All Implemented Interfaces:
ImpactsSource
- Direct Known Subclasses:
Lucene912PostingsReader.BlockImpactsDocsEnum,Lucene912PostingsReader.BlockImpactsPostingsEnum
- Enclosing class:
Lucene912PostingsReader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final long[]protected intprotected intprotected intprotected final intprotected final IndexInputprotected final ForDeltaUtilprotected final long[]private final Impactsprotected longprotected final Lucene912PostingsReader.MutableImpactListprotected intprotected final BytesRefprotected intprotected longprotected final Lucene912PostingsReader.MutableImpactListprotected intprotected final BytesRefprotected booleanprotected final PForUtilprotected longFields inherited from class org.apache.lucene.index.PostingsEnum
ALL, FREQS, NONE, OFFSETS, PAYLOADS, POSITIONSFields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate -
Method Summary
Modifier and TypeMethodDescriptionlongcost()Returns the estimated cost of thisDocIdSetIterator.intdocID()Returns the following:-1ifDocIdSetIterator.nextDoc()orDocIdSetIterator.advance(int)were not called yet.intReturns end offset for the current position, or -1 if offsets were not indexed.Get information about upcoming impacts for doc ids that are greater than or equal to the maximum ofDocIdSetIterator.docID()and the last target that was passed toImpactsSource.advanceShallow(int).Returns the payload at this position, or null if no payload was indexed.intReturns start offset for the current position, or -1 if offsets were not indexed.Methods inherited from class org.apache.lucene.index.PostingsEnum
featureRequested, freq, nextPositionMethods inherited from class org.apache.lucene.search.DocIdSetIterator
advance, all, empty, nextDoc, range, slowAdvanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.index.ImpactsSource
advanceShallow
-
Field Details
-
forDeltaUtil
-
pforUtil
-
docBuffer
protected final long[] docBuffer -
freqBuffer
protected final long[] freqBuffer -
docFreq
protected final int docFreq -
docIn
-
docCountUpto
protected int docCountUpto -
doc
protected int doc -
prevDocID
protected long prevDocID -
docBufferSize
protected int docBufferSize -
docBufferUpto
protected int docBufferUpto -
needsRefilling
protected boolean needsRefilling -
level0LastDocID
protected int level0LastDocID -
level0DocEndFP
protected long level0DocEndFP -
level0SerializedImpacts
-
level0Impacts
-
level1LastDocID
protected int level1LastDocID -
level1DocEndFP
protected long level1DocEndFP -
level1DocCountUpto
protected int level1DocCountUpto -
level1SerializedImpacts
-
level1Impacts
-
impacts
-
-
Constructor Details
-
BlockImpactsEnum
- Throws:
IOException
-
-
Method Details
-
docID
public int docID()Description copied from class:DocIdSetIteratorReturns the following:-1ifDocIdSetIterator.nextDoc()orDocIdSetIterator.advance(int)were not called yet.DocIdSetIterator.NO_MORE_DOCSif the iterator has exhausted.- Otherwise it should return the doc ID it is currently on.
- Specified by:
docIDin classDocIdSetIterator
-
startOffset
public int startOffset()Description copied from class:PostingsEnumReturns start offset for the current position, or -1 if offsets were not indexed.- Specified by:
startOffsetin classPostingsEnum
-
endOffset
public int endOffset()Description copied from class:PostingsEnumReturns end offset for the current position, or -1 if offsets were not indexed.- Specified by:
endOffsetin classPostingsEnum
-
getPayload
Description copied from class:PostingsEnumReturns the payload at this position, or null if no payload was indexed. You should not modify anything (neither members of the returned BytesRef nor bytes in the byte[]).- Specified by:
getPayloadin classPostingsEnum
-
cost
public long cost()Description copied from class:DocIdSetIteratorReturns the estimated cost of thisDocIdSetIterator.This is generally an upper bound of the number of documents this iterator might match, but may be a rough heuristic, hardcoded value, or otherwise completely inaccurate.
- Specified by:
costin classDocIdSetIterator
-
getImpacts
Description copied from interface:ImpactsSourceGet information about upcoming impacts for doc ids that are greater than or equal to the maximum ofDocIdSetIterator.docID()and the last target that was passed toImpactsSource.advanceShallow(int). This method may not be called on an unpositioned iterator on whichImpactsSource.advanceShallow(int)has never been called. NOTE: advancing this iterator may invalidate the returned impacts, so they should not be used after the iterator has been advanced.
-