Class UnorderedIntervalsSource
- java.lang.Object
-
- org.apache.lucene.queries.intervals.IntervalsSource
-
- org.apache.lucene.queries.intervals.ConjunctionIntervalsSource
-
- org.apache.lucene.queries.intervals.UnorderedIntervalsSource
-
class UnorderedIntervalsSource extends ConjunctionIntervalsSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classUnorderedIntervalsSource.UnorderedIntervalIterator-
Nested classes/interfaces inherited from class org.apache.lucene.queries.intervals.ConjunctionIntervalsSource
ConjunctionIntervalsSource.SingletonMatchesIterator
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.queries.intervals.ConjunctionIntervalsSource
isMinimizing, subSources
-
-
Constructor Summary
Constructors Modifier Constructor Description privateUnorderedIntervalsSource(java.util.List<IntervalsSource> sources)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static IntervalsSourcebuild(java.util.List<IntervalsSource> sources)protected IntervalIteratorcombine(java.util.List<IntervalIterator> iterators)private static java.util.List<IntervalsSource>deduplicate(java.util.List<IntervalsSource> sources)booleanequals(java.lang.Object other)private static java.util.List<IntervalsSource>flatten(java.util.List<IntervalsSource> sources)inthashCode()intminExtent()Return the minimum possible width of an interval returned by this sourcejava.util.Collection<IntervalsSource>pullUpDisjunctions()Expert: return the set of disjunctions that make up this IntervalsSource Most implementations can returnCollections.singleton(this)java.lang.StringtoString()-
Methods inherited from class org.apache.lucene.queries.intervals.ConjunctionIntervalsSource
intervals, matches, visit
-
-
-
-
Constructor Detail
-
UnorderedIntervalsSource
private UnorderedIntervalsSource(java.util.List<IntervalsSource> sources)
-
-
Method Detail
-
build
static IntervalsSource build(java.util.List<IntervalsSource> sources)
-
deduplicate
private static java.util.List<IntervalsSource> deduplicate(java.util.List<IntervalsSource> sources)
-
flatten
private static java.util.List<IntervalsSource> flatten(java.util.List<IntervalsSource> sources)
-
combine
protected IntervalIterator combine(java.util.List<IntervalIterator> iterators)
- Specified by:
combinein classConjunctionIntervalsSource
-
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
public java.util.Collection<IntervalsSource> 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
-
hashCode
public int hashCode()
- Specified by:
hashCodein classIntervalsSource
-
equals
public boolean equals(java.lang.Object other)
- Specified by:
equalsin classIntervalsSource
-
toString
public java.lang.String toString()
- Specified by:
toStringin classIntervalsSource
-
-