Class MinimumShouldMatchIntervalsSource
java.lang.Object
org.apache.lucene.queries.intervals.IntervalsSource
org.apache.lucene.queries.intervals.MinimumShouldMatchIntervalsSource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMinimumShouldMatchIntervalsSource(IntervalsSource[] sources, int minShouldMatch) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()intervals(String field, LeafReaderContext ctx) Create anIntervalIteratorexposing the minimum intervals defined by thisIntervalsSourceReturnsnullif no intervals for this field exist in this segmentmatches(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 fieldintReturn the minimum possible width of an interval returned by this sourceExpert: return the set of disjunctions that make up this IntervalsSource Most implementations can returnCollections.singleton(this)toString()voidvisit(String field, QueryVisitor visitor) Expert: visit the tree of sources
-
Field Details
-
sources
-
minShouldMatch
private final int minShouldMatch
-
-
Constructor Details
-
MinimumShouldMatchIntervalsSource
MinimumShouldMatchIntervalsSource(IntervalsSource[] sources, int minShouldMatch)
-
-
Method Details
-
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
-
matches
public 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
-
visit
Description copied from class:IntervalsSourceExpert: visit the tree of sources- Specified by:
visitin classIntervalsSource
-
minExtent
public int minExtent()Description copied from class:IntervalsSourceReturn the minimum possible width of an interval returned by this source- Specified by:
minExtentin classIntervalsSource
-
pullUpDisjunctions
Description copied from class:IntervalsSourceExpert: return the set of disjunctions that make up this IntervalsSource Most implementations can returnCollections.singleton(this)- Specified by:
pullUpDisjunctionsin classIntervalsSource
-
toString
- Specified by:
toStringin classIntervalsSource
-
equals
- Specified by:
equalsin classIntervalsSource
-
hashCode
public int hashCode()- Specified by:
hashCodein classIntervalsSource
-