Class CachingMatchesIterator
- java.lang.Object
-
- org.apache.lucene.search.FilterMatchesIterator
-
- org.apache.lucene.queries.intervals.CachingMatchesIterator
-
- All Implemented Interfaces:
MatchesIterator
class CachingMatchesIterator extends FilterMatchesIterator
-
-
Field Summary
Fields Modifier and Type Field Description private int
count
private Query[]
matchingQueries
private int[]
posAndOffsets
private boolean
positioned
-
Fields inherited from class org.apache.lucene.search.FilterMatchesIterator
in
-
-
Constructor Summary
Constructors Constructor Description CachingMatchesIterator(MatchesIterator in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
cache()
(package private) int
endOffset(int endPos)
(package private) MatchesIterator
getSubMatches(int endPos)
boolean
next()
Advance the iterator to the next match position(package private) int
startOffset(int endPos)
-
Methods inherited from class org.apache.lucene.search.FilterMatchesIterator
endOffset, endPosition, getQuery, getSubMatches, startOffset, startPosition
-
-
-
-
Field Detail
-
positioned
private boolean positioned
-
posAndOffsets
private int[] posAndOffsets
-
matchingQueries
private Query[] matchingQueries
-
count
private int count
-
-
Constructor Detail
-
CachingMatchesIterator
CachingMatchesIterator(MatchesIterator in)
-
-
Method Detail
-
cache
private void cache() throws java.io.IOException
- Throws:
java.io.IOException
-
next
public boolean next() throws java.io.IOException
Description copied from interface:MatchesIterator
Advance the iterator to the next match position- Specified by:
next
in interfaceMatchesIterator
- Overrides:
next
in classFilterMatchesIterator
- Returns:
true
if matches have not been exhausted- Throws:
java.io.IOException
-
startOffset
int startOffset(int endPos) throws java.io.IOException
- Throws:
java.io.IOException
-
endOffset
int endOffset(int endPos) throws java.io.IOException
- Throws:
java.io.IOException
-
getSubMatches
MatchesIterator getSubMatches(int endPos) throws java.io.IOException
- Throws:
java.io.IOException
-
-