Class XIntervals

java.lang.Object
org.elasticsearch.index.query.XIntervals

public final class XIntervals extends Object
Copy of Intervals that exposes versions of Intervals.ordered(org.apache.lucene.queries.intervals.IntervalsSource...) and Intervals.unordered(org.apache.lucene.queries.intervals.IntervalsSource...) that preserve their inner gaps. NOTE: Remove this hack when a version of Lucene with https://github.com/apache/lucene/pull/13819 is used (10.1.0).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.lucene.queries.intervals.IntervalsSource
    ordered(org.apache.lucene.queries.intervals.IntervalsSource... subSources)
    Create an ordered IntervalsSource
    static org.apache.lucene.queries.intervals.IntervalsSource
    unordered(org.apache.lucene.queries.intervals.IntervalsSource... subSources)
    Create an ordered IntervalsSource

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XIntervals

      public XIntervals()
  • Method Details

    • ordered

      public static org.apache.lucene.queries.intervals.IntervalsSource ordered(org.apache.lucene.queries.intervals.IntervalsSource... subSources)
      Create an ordered IntervalsSource

      Returns intervals in which the subsources all appear in the given order

      Parameters:
      subSources - an ordered set of IntervalsSource objects
    • unordered

      public static org.apache.lucene.queries.intervals.IntervalsSource unordered(org.apache.lucene.queries.intervals.IntervalsSource... subSources)
      Create an ordered IntervalsSource

      Returns intervals in which the subsources all appear in the given order

      Parameters:
      subSources - an ordered set of IntervalsSource objects