class PayloadFilteredTermIntervalsSource extends IntervalsSource
Modifier and Type | Field and Description |
---|---|
(package private) java.util.function.Predicate<BytesRef> |
filter |
(package private) BytesRef |
term |
Constructor and Description |
---|
PayloadFilteredTermIntervalsSource(BytesRef term,
java.util.function.Predicate<BytesRef> filter) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
IntervalIterator |
intervals(java.lang.String field,
LeafReaderContext ctx)
Create an
IntervalIterator exposing the minimum intervals defined by this IntervalsSource
Returns null if no intervals for this field exist in this segment |
private IntervalIterator |
intervals(TermsEnum te) |
MatchesIterator |
matches(java.lang.String field,
LeafReaderContext ctx,
int doc)
Return a
MatchesIterator over the intervals defined by this IntervalsSource for a
given document and field
Returns null if no intervals exist in the given document and field |
private MatchesIterator |
matches(TermsEnum te,
int doc) |
int |
minExtent()
Return the minimum possible width of an interval returned by this source
|
java.util.Collection<IntervalsSource> |
pullUpDisjunctions()
Expert: return the set of disjunctions that make up this IntervalsSource
Most implementations can return
Collections.singleton(this) |
java.lang.String |
toString() |
void |
visit(java.lang.String field,
QueryVisitor visitor)
Expert: visit the tree of sources
|
public IntervalIterator intervals(java.lang.String field, LeafReaderContext ctx) throws java.io.IOException
IntervalsSource
IntervalIterator
exposing the minimum intervals defined by this IntervalsSource
Returns null
if no intervals for this field exist in this segmentintervals
in class IntervalsSource
field
- the field to read positions fromctx
- the context for which to return the iteratorjava.io.IOException
private IntervalIterator intervals(TermsEnum te) throws java.io.IOException
java.io.IOException
public MatchesIterator matches(java.lang.String field, LeafReaderContext ctx, int doc) throws java.io.IOException
IntervalsSource
MatchesIterator
over the intervals defined by this IntervalsSource
for a
given document and field
Returns null
if no intervals exist in the given document and fieldmatches
in class IntervalsSource
field
- the field to read positions fromctx
- the document's contextdoc
- the document to return matches forjava.io.IOException
public void visit(java.lang.String field, QueryVisitor visitor)
IntervalsSource
visit
in class IntervalsSource
private MatchesIterator matches(TermsEnum te, int doc) throws java.io.IOException
java.io.IOException
public int minExtent()
IntervalsSource
minExtent
in class IntervalsSource
public java.util.Collection<IntervalsSource> pullUpDisjunctions()
IntervalsSource
Collections.singleton(this)
pullUpDisjunctions
in class IntervalsSource
public int hashCode()
hashCode
in class IntervalsSource
public boolean equals(java.lang.Object o)
equals
in class IntervalsSource
public java.lang.String toString()
toString
in class IntervalsSource