public static class OffsetsEnum.OfMatchesIteratorWithSubs extends OffsetsEnum
MatchesIterator
with submatches.Modifier and Type | Class and Description |
---|---|
private static class |
OffsetsEnum.OfMatchesIteratorWithSubs.CachedOE |
OffsetsEnum.MultiOffsetsEnum, OffsetsEnum.OfMatchesIterator, OffsetsEnum.OfMatchesIteratorWithSubs, OffsetsEnum.OfPostings
Modifier and Type | Field and Description |
---|---|
private java.util.PriorityQueue<OffsetsEnum> |
pendingQueue |
private java.util.HashMap<Query,BytesRef> |
queryToTermMap |
EMPTY
Constructor and Description |
---|
OfMatchesIteratorWithSubs(MatchesIterator matchesIterator) |
Modifier and Type | Method and Description |
---|---|
int |
endOffset() |
private boolean |
enqueueCachedMatches(MatchesIterator thisMI) |
int |
freq()
An estimate of the number of occurrences of this term/OffsetsEnum.
|
BytesRef |
getTerm()
The term at this position.
|
boolean |
nextPosition()
Advances to the next position and returns true, or if can't then returns false.
|
private void |
nextWhenMatchesIterator(OffsetsEnum.OfMatchesIterator miOE) |
private BytesRef |
queryToTerm(Query query)
Maps a Query from
MatchesIterator.getQuery() to OffsetsEnum.getTerm() . |
int |
startOffset() |
close, compareTo, toString
private final java.util.PriorityQueue<OffsetsEnum> pendingQueue
public OfMatchesIteratorWithSubs(MatchesIterator matchesIterator)
public boolean nextPosition() throws java.io.IOException
OffsetsEnum
nextPosition
in class OffsetsEnum
java.io.IOException
private void nextWhenMatchesIterator(OffsetsEnum.OfMatchesIterator miOE) throws java.io.IOException
java.io.IOException
private boolean enqueueCachedMatches(MatchesIterator thisMI) throws java.io.IOException
java.io.IOException
public int freq() throws java.io.IOException
OffsetsEnum
freq
in class OffsetsEnum
java.io.IOException
public BytesRef getTerm() throws java.io.IOException
OffsetsEnum
getTerm
in class OffsetsEnum
java.io.IOException
Passage.getMatchTerms()
public int startOffset() throws java.io.IOException
startOffset
in class OffsetsEnum
java.io.IOException
public int endOffset() throws java.io.IOException
endOffset
in class OffsetsEnum
java.io.IOException