Module org.apache.lucene.core
Package org.apache.lucene.search
Class DisjunctionMatchesIterator.TermsEnumDisjunctionMatchesIterator
java.lang.Object
org.apache.lucene.search.DisjunctionMatchesIterator.TermsEnumDisjunctionMatchesIterator
- All Implemented Interfaces:
MatchesIterator
- Enclosing class:
DisjunctionMatchesIterator
private static class DisjunctionMatchesIterator.TermsEnumDisjunctionMatchesIterator
extends Object
implements MatchesIterator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final MatchesIteratorprivate MatchesIteratorprivate final Queryprivate final TermsEnumprivate final BytesRefIterator -
Constructor Summary
ConstructorsConstructorDescriptionTermsEnumDisjunctionMatchesIterator(MatchesIterator first, BytesRefIterator terms, TermsEnum te, int doc, Query query) -
Method Summary
Modifier and TypeMethodDescriptionintThe ending offset of the current match, or-1if offsets are not availableintThe end position of the current match, or-1if positions are not availablegetQuery()Returns the Query causing the current matchReturns a MatchesIterator that iterates over the positions and offsets of individual terms within the current matchprivate voidinit()booleannext()Advance the iterator to the next match positionintThe starting offset of the current match, or-1if offsets are not availableintThe start position of the current match, or-1if positions are not available
-
Field Details
-
first
-
terms
-
te
-
doc
private final int doc -
query
-
it
-
-
Constructor Details
-
TermsEnumDisjunctionMatchesIterator
TermsEnumDisjunctionMatchesIterator(MatchesIterator first, BytesRefIterator terms, TermsEnum te, int doc, Query query)
-
-
Method Details
-
init
- Throws:
IOException
-
next
Description copied from interface:MatchesIteratorAdvance the iterator to the next match position- Specified by:
nextin interfaceMatchesIterator- Returns:
trueif matches have not been exhausted- Throws:
IOException
-
startPosition
public int startPosition()Description copied from interface:MatchesIteratorThe start position of the current match, or-1if positions are not availableShould only be called after
MatchesIterator.next()has returnedtrue- Specified by:
startPositionin interfaceMatchesIterator
-
endPosition
public int endPosition()Description copied from interface:MatchesIteratorThe end position of the current match, or-1if positions are not availableShould only be called after
MatchesIterator.next()has returnedtrue- Specified by:
endPositionin interfaceMatchesIterator
-
startOffset
Description copied from interface:MatchesIteratorThe starting offset of the current match, or-1if offsets are not availableShould only be called after
MatchesIterator.next()has returnedtrue- Specified by:
startOffsetin interfaceMatchesIterator- Throws:
IOException
-
endOffset
Description copied from interface:MatchesIteratorThe ending offset of the current match, or-1if offsets are not availableShould only be called after
MatchesIterator.next()has returnedtrue- Specified by:
endOffsetin interfaceMatchesIterator- Throws:
IOException
-
getSubMatches
Description copied from interface:MatchesIteratorReturns a MatchesIterator that iterates over the positions and offsets of individual terms within the current matchReturns
nullif there are no submatches (ie the current iterator is at the leaf level)Should only be called after
MatchesIterator.next()has returnedtrue- Specified by:
getSubMatchesin interfaceMatchesIterator- Throws:
IOException
-
getQuery
Description copied from interface:MatchesIteratorReturns the Query causing the current matchIf this
MatchesIteratorhas been returned from aMatchesIterator.getSubMatches()call, then returns aTermQueryequivalent to the current matchShould only be called after
MatchesIterator.next()has returnedtrue- Specified by:
getQueryin interfaceMatchesIterator
-