Class LongRange


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

      Fields 
      Modifier and Type Field Description
      long max
      Maximum.
      boolean maxInclusive
      True if the maximum value is inclusive.
      long min
      Minimum.
      boolean minInclusive
      True if the minimum value is inclusive.
      • Fields inherited from class org.apache.lucene.facet.range.Range

        label
    • Constructor Summary

      Constructors 
      Constructor Description
      LongRange​(java.lang.String label, long minIn, boolean minInclusive, long maxIn, boolean maxInclusive)
      Create a LongRange.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(long value)
      True if this range accepts the provided value.
      Filter getFilter​(Filter fastMatchFilter, ValueSource valueSource)
      Returns a new Filter accepting only documents in this range.
      java.lang.String toString()  
      • 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 Detail

      • 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 Detail

      • LongRange

        public LongRange​(java.lang.String label,
                         long minIn,
                         boolean minInclusive,
                         long maxIn,
                         boolean maxInclusive)
        Create a LongRange.