Class CachingMatchesIterator
java.lang.Object
org.apache.lucene.search.FilterMatchesIterator
org.apache.lucene.queries.intervals.CachingMatchesIterator
- All Implemented Interfaces:
IntervalMatchesIterator,MatchesIterator
-
Field Summary
FieldsFields inherited from class org.apache.lucene.search.FilterMatchesIterator
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcache()(package private) intendOffset(int endPos) intgaps()The number of top-level gaps inside the current match(package private) MatchesIteratorgetSubMatches(int endPos) booleannext()Advance the iterator to the next match position(package private) intstartOffset(int endPos) intwidth()The width of the current matchMethods inherited from class org.apache.lucene.search.FilterMatchesIterator
endOffset, endPosition, getQuery, getSubMatches, startOffset, startPositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.search.MatchesIterator
endOffset, endPosition, getQuery, getSubMatches, startOffset, startPosition
-
Field Details
-
positioned
private boolean positioned -
posAndOffsets
private int[] posAndOffsets -
matchingQueries
-
count
private int count
-
-
Constructor Details
-
CachingMatchesIterator
CachingMatchesIterator(IntervalMatchesIterator in)
-
-
Method Details
-
cache
- Throws:
IOException
-
next
Description copied from interface:MatchesIteratorAdvance the iterator to the next match position- Specified by:
nextin interfaceMatchesIterator- Overrides:
nextin classFilterMatchesIterator- Returns:
trueif matches have not been exhausted- Throws:
IOException
-
startOffset
- Throws:
IOException
-
endOffset
- Throws:
IOException
-
getSubMatches
- Throws:
IOException
-
gaps
public int gaps()Description copied from interface:IntervalMatchesIteratorThe number of top-level gaps inside the current match- Specified by:
gapsin interfaceIntervalMatchesIterator- See Also:
-
width
public int width()Description copied from interface:IntervalMatchesIteratorThe width of the current match- Specified by:
widthin interfaceIntervalMatchesIterator- See Also:
-