Class ConjunctionIntervalsSource
java.lang.Object
org.apache.lucene.queries.intervals.IntervalsSource
org.apache.lucene.queries.intervals.ConjunctionIntervalsSource
- Direct Known Subclasses:
BlockIntervalsSource
,ContainedByIntervalsSource
,ContainingIntervalsSource
,OverlappingIntervalsSource
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ConjunctionIntervalsSource
(List<IntervalsSource> subSources) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IntervalIterator
combine
(List<IntervalIterator> iterators) protected IntervalMatchesIterator
Create matches iterator from an advanced and validated interval iterator and a list of matches iterator of all the sub-sourcesfinal IntervalIterator
intervals
(String field, LeafReaderContext ctx) Create anIntervalIterator
exposing the minimum intervals defined by thisIntervalsSource
final IntervalMatchesIterator
matches
(String field, LeafReaderContext ctx, int doc) Return aMatchesIterator
over the intervals defined by thisIntervalsSource
for a given document and fieldvoid
visit
(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
-
-
Constructor Details
-
ConjunctionIntervalsSource
-
-
Method Details
-
visit
Description copied from class:IntervalsSource
Expert: visit the tree of sources- Specified by:
visit
in classIntervalsSource
-
intervals
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:
IOException
-
combine
-
createMatchesIterator
protected IntervalMatchesIterator createMatchesIterator(IntervalIterator it, List<IntervalMatchesIterator> subs) Create matches iterator from an advanced and validated interval iterator and a list of matches iterator of all the sub-sources -
matches
public final IntervalMatchesIterator matches(String field, LeafReaderContext ctx, int doc) throws 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:
IOException
-