Class MinimizingConjunctionIntervalsSource
- java.lang.Object
-
- org.apache.lucene.queries.intervals.IntervalsSource
-
- org.apache.lucene.queries.intervals.MinimizingConjunctionIntervalsSource
-
- Direct Known Subclasses:
OrderedIntervalsSource
,UnorderedIntervalsSource
abstract class MinimizingConjunctionIntervalsSource extends IntervalsSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interface
MinimizingConjunctionIntervalsSource.MatchCallback
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<IntervalsSource>
subSources
-
Constructor Summary
Constructors Modifier Constructor Description protected
MinimizingConjunctionIntervalsSource(java.util.List<IntervalsSource> subSources)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) static MinimizingConjunctionIntervalsSource.MatchCallback
cacheIterators(java.util.Collection<CachingMatchesIterator> its)
protected abstract IntervalIterator
combine(java.util.List<IntervalIterator> iterators, MinimizingConjunctionIntervalsSource.MatchCallback onMatch)
IntervalIterator
intervals(java.lang.String field, LeafReaderContext ctx)
Create anIntervalIterator
exposing the minimum intervals defined by thisIntervalsSource
IntervalMatchesIterator
matches(java.lang.String field, LeafReaderContext ctx, int doc)
Return aMatchesIterator
over the intervals defined by thisIntervalsSource
for a given document and fieldvoid
visit(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
-
-
Constructor Detail
-
MinimizingConjunctionIntervalsSource
protected MinimizingConjunctionIntervalsSource(java.util.List<IntervalsSource> subSources)
-
-
Method Detail
-
combine
protected abstract IntervalIterator combine(java.util.List<IntervalIterator> iterators, MinimizingConjunctionIntervalsSource.MatchCallback onMatch)
-
intervals
public IntervalIterator intervals(java.lang.String field, LeafReaderContext ctx) throws java.io.IOException
Description copied from class:IntervalsSource
Create anIntervalIterator
exposing the minimum intervals defined by thisIntervalsSource
Returns
null
if no intervals for this field exist in this segment- Specified by:
intervals
in classIntervalsSource
- Parameters:
field
- the field to read positions fromctx
- the context for which to return the iterator- Throws:
java.io.IOException
-
matches
public IntervalMatchesIterator matches(java.lang.String field, LeafReaderContext ctx, int doc) throws java.io.IOException
Description copied from class:IntervalsSource
Return aMatchesIterator
over the intervals defined by thisIntervalsSource
for a given document and fieldReturns
null
if no intervals exist in the given document and field- Specified by:
matches
in classIntervalsSource
- Parameters:
field
- the field to read positions fromctx
- the document's contextdoc
- the document to return matches for- Throws:
java.io.IOException
-
visit
public void visit(java.lang.String field, QueryVisitor visitor)
Description copied from class:IntervalsSource
Expert: visit the tree of sources- Specified by:
visit
in classIntervalsSource
-
cacheIterators
static MinimizingConjunctionIntervalsSource.MatchCallback cacheIterators(java.util.Collection<CachingMatchesIterator> its)
-
-