abstract class DifferenceIntervalsSource extends IntervalsSource
| Modifier and Type | Field and Description |
|---|---|
(package private) IntervalsSource |
minuend |
(package private) IntervalsSource |
subtrahend |
| Constructor and Description |
|---|
DifferenceIntervalsSource(IntervalsSource minuend,
IntervalsSource subtrahend) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract IntervalIterator |
combine(IntervalIterator minuend,
IntervalIterator subtrahend) |
IntervalIterator |
intervals(java.lang.String field,
LeafReaderContext ctx)
Create an
IntervalIterator exposing the minimum intervals defined by this IntervalsSource
Returns null if no intervals for this field exist in this segment |
MatchesIterator |
matches(java.lang.String field,
LeafReaderContext ctx,
int doc)
Return a
MatchesIterator over the intervals defined by this IntervalsSource for a
given document and field
Returns null if no intervals exist in the given document and field |
int |
minExtent()
Return the minimum possible width of an interval returned by this source
|
void |
visit(java.lang.String field,
QueryVisitor visitor)
Expert: visit the tree of sources
|
equals, hashCode, pullUpDisjunctions, toStringfinal IntervalsSource minuend
final IntervalsSource subtrahend
DifferenceIntervalsSource(IntervalsSource minuend, IntervalsSource subtrahend)
protected abstract IntervalIterator combine(IntervalIterator minuend, IntervalIterator subtrahend)
public final IntervalIterator intervals(java.lang.String field, LeafReaderContext ctx) throws java.io.IOException
IntervalsSourceIntervalIterator exposing the minimum intervals defined by this IntervalsSource
Returns null if no intervals for this field exist in this segmentintervals in class IntervalsSourcefield - the field to read positions fromctx - the context for which to return the iteratorjava.io.IOExceptionpublic final MatchesIterator matches(java.lang.String field, LeafReaderContext ctx, int doc) throws java.io.IOException
IntervalsSourceMatchesIterator over the intervals defined by this IntervalsSource for a
given document and field
Returns null if no intervals exist in the given document and fieldmatches in class IntervalsSourcefield - the field to read positions fromctx - the document's contextdoc - the document to return matches forjava.io.IOExceptionpublic void visit(java.lang.String field,
QueryVisitor visitor)
IntervalsSourcevisit in class IntervalsSourcepublic int minExtent()
IntervalsSourceminExtent in class IntervalsSource