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, POSITIONSFields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns end offset for the current position, or -1 if offsets were not indexed.intfreq()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.intReturns the next position, or -1 if positions were not indexed.intReturns 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, nextDocMethods inherited from class org.apache.lucene.index.PostingsEnum
featureRequestedMethods inherited from class org.apache.lucene.search.DocIdSetIterator
all, docIDRunEnd, empty, intoBitSet, range, slowAdvance
-
Constructor Details
-
UnionFullPostingsEnum
-
-
Method Details
-
freq
Description copied from class:PostingsEnumReturns 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
PostingsEnumwas obtain withPostingsEnum.NONE, the result of this method is undefined.- Overrides:
freqin classMultiPhraseQuery.UnionPostingsEnum- Throws:
IOException
-
nextPosition
Description copied from class:PostingsEnumReturns the next position, or -1 if positions were not indexed. Calling this more thanPostingsEnum.freq()times is undefined.- Overrides:
nextPositionin classMultiPhraseQuery.UnionPostingsEnum- Throws:
IOException
-
startOffset
Description copied from class:PostingsEnumReturns start offset for the current position, or -1 if offsets were not indexed.- Overrides:
startOffsetin classMultiPhraseQuery.UnionPostingsEnum- Throws:
IOException
-
endOffset
Description copied from class:PostingsEnumReturns end offset for the current position, or -1 if offsets were not indexed.- Overrides:
endOffsetin classMultiPhraseQuery.UnionPostingsEnum- Throws:
IOException
-
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[]).- Overrides:
getPayloadin classMultiPhraseQuery.UnionPostingsEnum- Throws:
IOException
-