class CachingMatchesIterator extends FilterMatchesIterator
Modifier and Type | Field and Description |
---|---|
private int |
count |
private int[] |
posAndOffsets |
private boolean |
positioned |
in
Constructor and Description |
---|
CachingMatchesIterator(MatchesIterator in) |
Modifier and Type | Method and 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) |
endOffset, endPosition, getQuery, getSubMatches, startOffset, startPosition
private boolean positioned
private int[] posAndOffsets
private int count
CachingMatchesIterator(MatchesIterator in)
private void cache() throws java.io.IOException
java.io.IOException
public boolean next() throws java.io.IOException
MatchesIterator
next
in interface MatchesIterator
next
in class FilterMatchesIterator
true
if matches have not been exhaustedjava.io.IOException
int startOffset(int endPos) throws java.io.IOException
java.io.IOException
int endOffset(int endPos) throws java.io.IOException
java.io.IOException
MatchesIterator getSubMatches(int endPos) throws java.io.IOException
java.io.IOException