static class MultiPhraseQuery.UnionFullPostingsEnum extends MultiPhraseQuery.UnionPostingsEnum
MultiPhraseQuery.UnionPostingsEnum.DocsQueue, MultiPhraseQuery.UnionPostingsEnum.PositionsQueue
Modifier and Type | Field and Description |
---|---|
(package private) int |
freq |
(package private) PriorityQueue<MultiPhraseQuery.PostingsAndPosition> |
posQueue |
(package private) boolean |
started |
(package private) java.util.Collection<MultiPhraseQuery.PostingsAndPosition> |
subs |
cost, docsQueue, posQueueDoc
ALL, FREQS, NONE, OFFSETS, PAYLOADS, POSITIONS
NO_MORE_DOCS
Constructor and Description |
---|
UnionFullPostingsEnum(java.util.List<PostingsEnum> subs) |
Modifier and Type | Method and Description |
---|---|
int |
endOffset()
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 with
IndexOptions.DOCS . |
BytesRef |
getPayload()
Returns the payload at this position, or null if no
payload was indexed.
|
int |
nextPosition()
Returns the next position, or -1 if positions were not indexed.
|
int |
startOffset()
Returns start offset for the current position, or -1
if offsets were not indexed.
|
advance, cost, docID, nextDoc
featureRequested
all, empty, range, slowAdvance
int freq
boolean started
final PriorityQueue<MultiPhraseQuery.PostingsAndPosition> posQueue
final java.util.Collection<MultiPhraseQuery.PostingsAndPosition> subs
UnionFullPostingsEnum(java.util.List<PostingsEnum> subs)
public int freq() throws java.io.IOException
PostingsEnum
IndexOptions.DOCS
. Do not call this before
DocIdSetIterator.nextDoc()
is first called, nor after DocIdSetIterator.nextDoc()
returns
DocIdSetIterator.NO_MORE_DOCS
.
NOTE: if the PostingsEnum
was obtain with PostingsEnum.NONE
,
the result of this method is undefined.
freq
in class MultiPhraseQuery.UnionPostingsEnum
java.io.IOException
public int nextPosition() throws java.io.IOException
PostingsEnum
PostingsEnum.freq()
times is undefined.nextPosition
in class MultiPhraseQuery.UnionPostingsEnum
java.io.IOException
public int startOffset() throws java.io.IOException
PostingsEnum
startOffset
in class MultiPhraseQuery.UnionPostingsEnum
java.io.IOException
public int endOffset() throws java.io.IOException
PostingsEnum
endOffset
in class MultiPhraseQuery.UnionPostingsEnum
java.io.IOException
public BytesRef getPayload() throws java.io.IOException
PostingsEnum
getPayload
in class MultiPhraseQuery.UnionPostingsEnum
java.io.IOException