Package org.apache.lucene.search
Class FilterMatchesIterator
java.lang.Object
org.apache.lucene.search.FilterMatchesIterator
- All Implemented Interfaces:
MatchesIterator
A MatchesIterator that delegates all calls to another MatchesIterator
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Create a new FilterMatchesIterator -
Method Summary
Modifier and TypeMethodDescriptionint
The ending offset of the current match, or-1
if offsets are not availableint
The end position of the current matchgetQuery()
Returns the Query causing the current matchReturns a MatchesIterator that iterates over the positions and offsets of individual terms within the current matchboolean
next()
Advance the iterator to the next match positionint
The starting offset of the current match, or-1
if offsets are not availableint
The start position of the current match
-
Field Details
-
in
The delegate
-
-
Constructor Details
-
FilterMatchesIterator
Create a new FilterMatchesIterator- Parameters:
in
- the delegate
-
-
Method Details
-
next
Description copied from interface:MatchesIterator
Advance the iterator to the next match position- Specified by:
next
in interfaceMatchesIterator
- Returns:
true
if matches have not been exhausted- Throws:
IOException
-
startPosition
public int startPosition()Description copied from interface:MatchesIterator
The start position of the current matchShould only be called after
MatchesIterator.next()
has returnedtrue
- Specified by:
startPosition
in interfaceMatchesIterator
-
endPosition
public int endPosition()Description copied from interface:MatchesIterator
The end position of the current matchShould only be called after
MatchesIterator.next()
has returnedtrue
- Specified by:
endPosition
in interfaceMatchesIterator
-
startOffset
Description copied from interface:MatchesIterator
The starting offset of the current match, or-1
if offsets are not availableShould only be called after
MatchesIterator.next()
has returnedtrue
- Specified by:
startOffset
in interfaceMatchesIterator
- Throws:
IOException
-
endOffset
Description copied from interface:MatchesIterator
The ending offset of the current match, or-1
if offsets are not availableShould only be called after
MatchesIterator.next()
has returnedtrue
- Specified by:
endOffset
in interfaceMatchesIterator
- Throws:
IOException
-
getSubMatches
Description copied from interface:MatchesIterator
Returns a MatchesIterator that iterates over the positions and offsets of individual terms within the current matchReturns
null
if there are no submatches (ie the current iterator is at the leaf level)Should only be called after
MatchesIterator.next()
has returnedtrue
- Specified by:
getSubMatches
in interfaceMatchesIterator
- Throws:
IOException
-
getQuery
Description copied from interface:MatchesIterator
Returns the Query causing the current matchIf this
MatchesIterator
has been returned from aMatchesIterator.getSubMatches()
call, then returns aTermQuery
equivalent to the current matchShould only be called after
MatchesIterator.next()
has returnedtrue
- Specified by:
getQuery
in interfaceMatchesIterator
-