Class DoubleRange

java.lang.Object
org.apache.lucene.facet.range.Range
org.apache.lucene.facet.range.DoubleRange

public final class DoubleRange extends Range
Represents a range over double values.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
    Maximum.
    final boolean
    True if the maximum value is inclusive.
    final double
    Minimum.
    final boolean
    True if the minimum value is inclusive.

    Fields inherited from class org.apache.lucene.facet.range.Range

    label
  • Constructor Summary

    Constructors
    Constructor
    Description
    DoubleRange(String label, double minIn, boolean minInclusive, double maxIn, boolean maxInclusive)
    Create a DoubleRange.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(double value)
    True if this range accepts the provided value.
    getFilter(Filter fastMatchFilter, ValueSource valueSource)
    Returns a new Filter accepting only documents in this range.
     

    Methods inherited from class org.apache.lucene.facet.range.Range

    getFilter

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • min

      public final double min
      Minimum.
    • max

      public final double max
      Maximum.
    • minInclusive

      public final boolean minInclusive
      True if the minimum value is inclusive.
    • maxInclusive

      public final boolean maxInclusive
      True if the maximum value is inclusive.
  • Constructor Details

    • DoubleRange

      public DoubleRange(String label, double minIn, boolean minInclusive, double maxIn, boolean maxInclusive)
      Create a DoubleRange.
  • Method Details