Class OverlappingIntervalsSource
- java.lang.Object
-
- org.apache.lucene.queries.intervals.IntervalsSource
-
- org.apache.lucene.queries.intervals.ConjunctionIntervalsSource
-
- org.apache.lucene.queries.intervals.OverlappingIntervalsSource
-
class OverlappingIntervalsSource extends ConjunctionIntervalsSource
-
-
Field Summary
Fields Modifier and Type Field Description private IntervalsSource
reference
private IntervalsSource
source
-
Fields inherited from class org.apache.lucene.queries.intervals.ConjunctionIntervalsSource
subSources
-
-
Constructor Summary
Constructors Constructor Description OverlappingIntervalsSource(IntervalsSource source, IntervalsSource reference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IntervalIterator
combine(java.util.List<IntervalIterator> iterators)
protected IntervalMatchesIterator
createMatchesIterator(IntervalIterator it, java.util.List<IntervalMatchesIterator> subs)
Create matches iterator from an advanced and validated interval iterator and a list of matches iterator of all the sub-sourcesboolean
equals(java.lang.Object other)
int
hashCode()
int
minExtent()
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 IntervalsSourcejava.lang.String
toString()
-
Methods inherited from class org.apache.lucene.queries.intervals.ConjunctionIntervalsSource
intervals, matches, visit
-
-
-
-
Field Detail
-
source
private final IntervalsSource source
-
reference
private final IntervalsSource reference
-
-
Constructor Detail
-
OverlappingIntervalsSource
OverlappingIntervalsSource(IntervalsSource source, IntervalsSource reference)
-
-
Method Detail
-
combine
protected IntervalIterator combine(java.util.List<IntervalIterator> iterators)
- Specified by:
combine
in classConjunctionIntervalsSource
-
createMatchesIterator
protected IntervalMatchesIterator createMatchesIterator(IntervalIterator it, java.util.List<IntervalMatchesIterator> subs)
Description copied from class:ConjunctionIntervalsSource
Create matches iterator from an advanced and validated interval iterator and a list of matches iterator of all the sub-sources- Overrides:
createMatchesIterator
in classConjunctionIntervalsSource
-
minExtent
public int minExtent()
Description copied from class:IntervalsSource
Return the minimum possible width of an interval returned by this source- Specified by:
minExtent
in classIntervalsSource
-
pullUpDisjunctions
public java.util.Collection<IntervalsSource> pullUpDisjunctions()
Description copied from class:IntervalsSource
Expert: return the set of disjunctions that make up this IntervalsSourceMost implementations can return
Collections.singleton(this)
- Specified by:
pullUpDisjunctions
in classIntervalsSource
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classIntervalsSource
-
equals
public boolean equals(java.lang.Object other)
- Specified by:
equals
in classIntervalsSource
-
toString
public java.lang.String toString()
- Specified by:
toString
in classIntervalsSource
-
-