private static class DisjunctionMatchesIterator.TermsEnumDisjunctionMatchesIterator extends java.lang.Object implements MatchesIterator
Modifier and Type | Field and Description |
---|---|
private int |
doc |
private MatchesIterator |
first |
private MatchesIterator |
it |
private Query |
query |
private TermsEnum |
te |
private BytesRefIterator |
terms |
Constructor and Description |
---|
TermsEnumDisjunctionMatchesIterator(MatchesIterator first,
BytesRefIterator terms,
TermsEnum te,
int doc,
Query query) |
Modifier and Type | Method and Description |
---|---|
int |
endOffset()
The ending offset of the current match, or
-1 if offsets are not available
Should only be called after MatchesIterator.next() has returned true |
int |
endPosition()
The end position of the current match
Should only be called after
MatchesIterator.next() has returned true |
Query |
getQuery()
Returns the Query causing the current match
If this
MatchesIterator has been returned from a MatchesIterator.getSubMatches()
call, then returns a TermQuery equivalent to the current match
Should only be called after MatchesIterator.next() has returned true |
MatchesIterator |
getSubMatches()
Returns a MatchesIterator that iterates over the positions and offsets of individual
terms within the current match
Returns
null if there are no submatches (ie the current iterator is at the
leaf level)
Should only be called after MatchesIterator.next() has returned true |
private void |
init() |
boolean |
next()
Advance the iterator to the next match position
|
int |
startOffset()
The starting offset of the current match, or
-1 if offsets are not available
Should only be called after MatchesIterator.next() has returned true |
int |
startPosition()
The start position of the current match
Should only be called after
MatchesIterator.next() has returned true |
private final MatchesIterator first
private final BytesRefIterator terms
private final TermsEnum te
private final int doc
private final Query query
private MatchesIterator it
TermsEnumDisjunctionMatchesIterator(MatchesIterator first, BytesRefIterator terms, TermsEnum te, int doc, Query query)
private void init() throws java.io.IOException
java.io.IOException
public boolean next() throws java.io.IOException
MatchesIterator
next
in interface MatchesIterator
true
if matches have not been exhaustedjava.io.IOException
public int startPosition()
MatchesIterator
MatchesIterator.next()
has returned true
startPosition
in interface MatchesIterator
public int endPosition()
MatchesIterator
MatchesIterator.next()
has returned true
endPosition
in interface MatchesIterator
public int startOffset() throws java.io.IOException
MatchesIterator
-1
if offsets are not available
Should only be called after MatchesIterator.next()
has returned true
startOffset
in interface MatchesIterator
java.io.IOException
public int endOffset() throws java.io.IOException
MatchesIterator
-1
if offsets are not available
Should only be called after MatchesIterator.next()
has returned true
endOffset
in interface MatchesIterator
java.io.IOException
public MatchesIterator getSubMatches() throws java.io.IOException
MatchesIterator
null
if there are no submatches (ie the current iterator is at the
leaf level)
Should only be called after MatchesIterator.next()
has returned true
getSubMatches
in interface MatchesIterator
java.io.IOException
public Query getQuery()
MatchesIterator
MatchesIterator
has been returned from a MatchesIterator.getSubMatches()
call, then returns a TermQuery
equivalent to the current match
Should only be called after MatchesIterator.next()
has returned true
getQuery
in interface MatchesIterator