Class ConjunctionIntervalsSource
- java.lang.Object
-
- org.apache.lucene.queries.intervals.IntervalsSource
-
- org.apache.lucene.queries.intervals.ConjunctionIntervalsSource
-
- Direct Known Subclasses:
BlockIntervalsSource,ContainedByIntervalsSource,ContainingIntervalsSource,OrderedIntervalsSource,OverlappingIntervalsSource,UnorderedIntervalsSource
abstract class ConjunctionIntervalsSource extends IntervalsSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classConjunctionIntervalsSource.ConjunctionMatchesIterator(package private) static classConjunctionIntervalsSource.SingletonMatchesIterator
-
Field Summary
Fields Modifier and Type Field Description protected booleanisMinimizingprotected java.util.List<IntervalsSource>subSources
-
Constructor Summary
Constructors Modifier Constructor Description protectedConjunctionIntervalsSource(java.util.List<IntervalsSource> subSources, boolean isMinimizing)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract IntervalIteratorcombine(java.util.List<IntervalIterator> iterators)IntervalIteratorintervals(java.lang.String field, LeafReaderContext ctx)Create anIntervalIteratorexposing the minimum intervals defined by thisIntervalsSourceReturnsnullif no intervals for this field exist in this segmentIntervalMatchesIteratormatches(java.lang.String field, LeafReaderContext ctx, int doc)Return aMatchesIteratorover the intervals defined by thisIntervalsSourcefor a given document and field Returnsnullif no intervals exist in the given document and fieldvoidvisit(java.lang.String field, QueryVisitor visitor)Expert: visit the tree of sources-
Methods inherited from class org.apache.lucene.queries.intervals.IntervalsSource
equals, hashCode, minExtent, pullUpDisjunctions, toString
-
-
-
-
Field Detail
-
subSources
protected final java.util.List<IntervalsSource> subSources
-
isMinimizing
protected final boolean isMinimizing
-
-
Constructor Detail
-
ConjunctionIntervalsSource
protected ConjunctionIntervalsSource(java.util.List<IntervalsSource> subSources, boolean isMinimizing)
-
-
Method Detail
-
visit
public void visit(java.lang.String field, QueryVisitor visitor)Description copied from class:IntervalsSourceExpert: visit the tree of sources- Specified by:
visitin classIntervalsSource
-
intervals
public final IntervalIterator intervals(java.lang.String field, LeafReaderContext ctx) throws java.io.IOException
Description copied from class:IntervalsSourceCreate anIntervalIteratorexposing the minimum intervals defined by thisIntervalsSourceReturnsnullif no intervals for this field exist in this segment- Specified by:
intervalsin classIntervalsSource- Parameters:
field- the field to read positions fromctx- the context for which to return the iterator- Throws:
java.io.IOException
-
combine
protected abstract IntervalIterator combine(java.util.List<IntervalIterator> iterators)
-
matches
public final IntervalMatchesIterator matches(java.lang.String field, LeafReaderContext ctx, int doc) throws java.io.IOException
Description copied from class:IntervalsSourceReturn aMatchesIteratorover the intervals defined by thisIntervalsSourcefor a given document and field Returnsnullif no intervals exist in the given document and field- Specified by:
matchesin classIntervalsSource- Parameters:
field- the field to read positions fromctx- the document's contextdoc- the document to return matches for- Throws:
java.io.IOException
-
-