Class SourceIntervalsSource

java.lang.Object
org.apache.lucene.queries.intervals.IntervalsSource
org.elasticsearch.index.query.SourceIntervalsSource

public final class SourceIntervalsSource extends org.apache.lucene.queries.intervals.IntervalsSource
A wrapper of IntervalsSource for the case when positions are not indexed.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SourceIntervalsSource(org.apache.lucene.queries.intervals.IntervalsSource in, org.apache.lucene.search.Query approximation, Function<org.apache.lucene.index.LeafReaderContext,org.elasticsearch.common.CheckedIntFunction<List<Object>,IOException>> valueFetcherProvider, org.apache.lucene.analysis.Analyzer indexAnalyzer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    org.apache.lucene.queries.intervals.IntervalsSource
     
    int
     
    org.apache.lucene.queries.intervals.IntervalIterator
    intervals(String field, org.apache.lucene.index.LeafReaderContext ctx)
     
    org.apache.lucene.queries.intervals.IntervalMatchesIterator
    matches(String field, org.apache.lucene.index.LeafReaderContext ctx, int doc)
     
    int
     
    Collection<org.apache.lucene.queries.intervals.IntervalsSource>
     
     
    void
    visit(String field, org.apache.lucene.search.QueryVisitor visitor)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SourceIntervalsSource

      public SourceIntervalsSource(org.apache.lucene.queries.intervals.IntervalsSource in, org.apache.lucene.search.Query approximation, Function<org.apache.lucene.index.LeafReaderContext,org.elasticsearch.common.CheckedIntFunction<List<Object>,IOException>> valueFetcherProvider, org.apache.lucene.analysis.Analyzer indexAnalyzer)
  • Method Details

    • getIntervalsSource

      public org.apache.lucene.queries.intervals.IntervalsSource getIntervalsSource()
    • intervals

      public org.apache.lucene.queries.intervals.IntervalIterator intervals(String field, org.apache.lucene.index.LeafReaderContext ctx) throws IOException
      Specified by:
      intervals in class org.apache.lucene.queries.intervals.IntervalsSource
      Throws:
      IOException
    • matches

      public org.apache.lucene.queries.intervals.IntervalMatchesIterator matches(String field, org.apache.lucene.index.LeafReaderContext ctx, int doc) throws IOException
      Specified by:
      matches in class org.apache.lucene.queries.intervals.IntervalsSource
      Throws:
      IOException
    • visit

      public void visit(String field, org.apache.lucene.search.QueryVisitor visitor)
      Specified by:
      visit in class org.apache.lucene.queries.intervals.IntervalsSource
    • minExtent

      public int minExtent()
      Specified by:
      minExtent in class org.apache.lucene.queries.intervals.IntervalsSource
    • pullUpDisjunctions

      public Collection<org.apache.lucene.queries.intervals.IntervalsSource> pullUpDisjunctions()
      Specified by:
      pullUpDisjunctions in class org.apache.lucene.queries.intervals.IntervalsSource
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class org.apache.lucene.queries.intervals.IntervalsSource
    • equals

      public boolean equals(Object other)
      Specified by:
      equals in class org.apache.lucene.queries.intervals.IntervalsSource
    • toString

      public String toString()
      Specified by:
      toString in class org.apache.lucene.queries.intervals.IntervalsSource