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 int
protected final long[]
protected int
protected int
protected int
protected final int
protected final IndexInput
protected final ForDeltaUtil
protected final long[]
private final Impacts
protected long
protected final Lucene912PostingsReader.MutableImpactList
protected int
protected final BytesRef
protected int
protected long
protected final Lucene912PostingsReader.MutableImpactList
protected int
protected final BytesRef
protected boolean
protected final PForUtil
protected long
Fields inherited from class org.apache.lucene.index.PostingsEnum
ALL, FREQS, NONE, OFFSETS, PAYLOADS, POSITIONS
Fields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionlong
cost()
Returns the estimated cost of thisDocIdSetIterator
.int
docID()
Returns the following:-1
ifDocIdSetIterator.nextDoc()
orDocIdSetIterator.advance(int)
were not called yet.int
Returns 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.int
Returns start offset for the current position, or -1 if offsets were not indexed.Methods inherited from class org.apache.lucene.index.PostingsEnum
featureRequested, freq, nextPosition
Methods inherited from class org.apache.lucene.search.DocIdSetIterator
advance, all, empty, nextDoc, range, slowAdvance
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:DocIdSetIterator
Returns the following:-1
ifDocIdSetIterator.nextDoc()
orDocIdSetIterator.advance(int)
were not called yet.DocIdSetIterator.NO_MORE_DOCS
if the iterator has exhausted.- Otherwise it should return the doc ID it is currently on.
- Specified by:
docID
in classDocIdSetIterator
-
startOffset
public int startOffset()Description copied from class:PostingsEnum
Returns start offset for the current position, or -1 if offsets were not indexed.- Specified by:
startOffset
in classPostingsEnum
-
endOffset
public int endOffset()Description copied from class:PostingsEnum
Returns end offset for the current position, or -1 if offsets were not indexed.- Specified by:
endOffset
in classPostingsEnum
-
getPayload
Description copied from class:PostingsEnum
Returns 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:
getPayload
in classPostingsEnum
-
cost
public long cost()Description copied from class:DocIdSetIterator
Returns 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:
cost
in classDocIdSetIterator
-
getImpacts
Description copied from interface:ImpactsSource
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)
. 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.
-