Package org.apache.lucene.search
Class MultiPhraseQuery.UnionFullPostingsEnum
java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.PostingsEnum
org.apache.lucene.search.MultiPhraseQuery.UnionPostingsEnum
org.apache.lucene.search.MultiPhraseQuery.UnionFullPostingsEnum
- Enclosing class:
- MultiPhraseQuery
public static class MultiPhraseQuery.UnionFullPostingsEnum
extends MultiPhraseQuery.UnionPostingsEnum
Slower version of UnionPostingsEnum that delegates offsets and positions, for use by
MatchesIterator
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Field Summary
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns end offset for the current position, or -1 if offsets were not indexed.int
freq()
Returns term frequency in the current document, or 1 if the field was indexed withIndexOptions.DOCS
.Returns the payload at this position, or null if no payload was indexed.int
Returns the next position, or -1 if positions were not indexed.int
Returns start offset for the current position, or -1 if offsets were not indexed.Methods inherited from class org.apache.lucene.search.MultiPhraseQuery.UnionPostingsEnum
advance, cost, docID, nextDoc
Methods inherited from class org.apache.lucene.index.PostingsEnum
featureRequested
Methods inherited from class org.apache.lucene.search.DocIdSetIterator
all, empty, range, slowAdvance
-
Constructor Details
-
UnionFullPostingsEnum
-
-
Method Details
-
freq
Description copied from class:PostingsEnum
Returns term frequency in the current document, or 1 if the field was indexed withIndexOptions.DOCS
. Do not call this beforeDocIdSetIterator.nextDoc()
is first called, nor afterDocIdSetIterator.nextDoc()
returnsDocIdSetIterator.NO_MORE_DOCS
.NOTE: if the
PostingsEnum
was obtain withPostingsEnum.NONE
, the result of this method is undefined.- Overrides:
freq
in classMultiPhraseQuery.UnionPostingsEnum
- Throws:
IOException
-
nextPosition
Description copied from class:PostingsEnum
Returns the next position, or -1 if positions were not indexed. Calling this more thanPostingsEnum.freq()
times is undefined.- Overrides:
nextPosition
in classMultiPhraseQuery.UnionPostingsEnum
- Throws:
IOException
-
startOffset
Description copied from class:PostingsEnum
Returns start offset for the current position, or -1 if offsets were not indexed.- Overrides:
startOffset
in classMultiPhraseQuery.UnionPostingsEnum
- Throws:
IOException
-
endOffset
Description copied from class:PostingsEnum
Returns end offset for the current position, or -1 if offsets were not indexed.- Overrides:
endOffset
in classMultiPhraseQuery.UnionPostingsEnum
- Throws:
IOException
-
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[]).- Overrides:
getPayload
in classMultiPhraseQuery.UnionPostingsEnum
- Throws:
IOException
-