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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class(package private) static class -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConjunctionIntervalsSource(List<IntervalsSource> subSources, boolean isMinimizing) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IntervalIteratorcombine(List<IntervalIterator> iterators) final IntervalIteratorintervals(String field, LeafReaderContext ctx) Create anIntervalIteratorexposing the minimum intervals defined by thisIntervalsSourceReturnsnullif no intervals for this field exist in this segmentfinal IntervalMatchesIteratormatches(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(String field, QueryVisitor visitor) Expert: visit the tree of sourcesMethods inherited from class org.apache.lucene.queries.intervals.IntervalsSource
equals, hashCode, minExtent, pullUpDisjunctions, toString
-
Field Details
-
subSources
-
isMinimizing
protected final boolean isMinimizing
-
-
Constructor Details
-
ConjunctionIntervalsSource
-
-
Method Details
-
visit
Description copied from class:IntervalsSourceExpert: visit the tree of sources- Specified by:
visitin classIntervalsSource
-
intervals
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:
IOException
-
combine
-
matches
public final IntervalMatchesIterator matches(String field, LeafReaderContext ctx, int doc) throws 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:
IOException
-