abstract class ConjunctionIntervalsSource extends IntervalsSource
Modifier and Type | Class and Description |
---|---|
private static class |
ConjunctionIntervalsSource.ConjunctionMatchesIterator |
private static class |
ConjunctionIntervalsSource.SingletonMatchesIterator |
Modifier and Type | Field and Description |
---|---|
protected boolean |
isMinimizing |
protected java.util.List<IntervalsSource> |
subSources |
Modifier | Constructor and Description |
---|---|
protected |
ConjunctionIntervalsSource(java.util.List<IntervalsSource> subSources,
boolean isMinimizing) |
Modifier and Type | Method and Description |
---|---|
protected abstract IntervalIterator |
combine(java.util.List<IntervalIterator> iterators) |
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 |
void |
visit(java.lang.String field,
QueryVisitor visitor)
Expert: visit the tree of sources
|
equals, hashCode, minExtent, pullUpDisjunctions, toString
protected final java.util.List<IntervalsSource> subSources
protected final boolean isMinimizing
protected ConjunctionIntervalsSource(java.util.List<IntervalsSource> subSources, boolean isMinimizing)
public void visit(java.lang.String field, QueryVisitor visitor)
IntervalsSource
visit
in class IntervalsSource
public final IntervalIterator intervals(java.lang.String field, LeafReaderContext ctx) throws java.io.IOException
IntervalsSource
IntervalIterator
exposing the minimum intervals defined by this IntervalsSource
Returns null
if no intervals for this field exist in this segmentintervals
in class IntervalsSource
field
- the field to read positions fromctx
- the context for which to return the iteratorjava.io.IOException
protected abstract IntervalIterator combine(java.util.List<IntervalIterator> iterators)
public final MatchesIterator matches(java.lang.String field, LeafReaderContext ctx, int doc) throws java.io.IOException
IntervalsSource
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 fieldmatches
in class IntervalsSource
field
- the field to read positions fromctx
- the document's contextdoc
- the document to return matches forjava.io.IOException