Class LongRange

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

public final class LongRange extends Range
Represents a range over long values.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final long
    Maximum.
    final boolean
    True if the maximum value is inclusive.
    final long
    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
    LongRange(String label, long minIn, boolean minInclusive, long maxIn, boolean maxInclusive)
    Create a LongRange.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(long 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 long min
      Minimum.
    • max

      public final long 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

    • LongRange

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