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, toStringprivate final java.util.PriorityQueue<OffsetsEnum> pendingQueue
public OfMatchesIteratorWithSubs(MatchesIterator matchesIterator)
public boolean nextPosition()
throws java.io.IOException
OffsetsEnumnextPosition in class OffsetsEnumjava.io.IOExceptionprivate void nextWhenMatchesIterator(OffsetsEnum.OfMatchesIterator miOE) throws java.io.IOException
java.io.IOExceptionprivate boolean enqueueCachedMatches(MatchesIterator thisMI) throws java.io.IOException
java.io.IOExceptionpublic int freq()
throws java.io.IOException
OffsetsEnumfreq in class OffsetsEnumjava.io.IOExceptionpublic BytesRef getTerm() throws java.io.IOException
OffsetsEnumgetTerm in class OffsetsEnumjava.io.IOExceptionPassage.getMatchTerms()public int startOffset()
throws java.io.IOException
startOffset in class OffsetsEnumjava.io.IOExceptionpublic int endOffset()
throws java.io.IOException
endOffset in class OffsetsEnumjava.io.IOException