Class ShardLongFieldRange

org.elasticsearch.index.shard.ShardLongFieldRange
All Implemented Interfaces:
Writeable

public class ShardLongFieldRange extends implements Writeable
Class representing an (inclusive) range of long values in a field in a single shard.
  • Field Details

    • LONG_FIELD_RANGE_VERSION_INTRODUCED

      public static final Version LONG_FIELD_RANGE_VERSION_INTRODUCED
    • EMPTY

      public static final ShardLongFieldRange EMPTY
      Sentinel value indicating an empty range, for instance because the field is missing or has no values.
    • UNKNOWN

      public static final ShardLongFieldRange UNKNOWN
      Sentinel value indicating the actual range is unknown, for instance because more docs may be added in future.
  • Method Details

    • of

      public static ShardLongFieldRange of(long min, long max)
      Construct a new ShardLongFieldRange with the given (inclusive) minimum and maximum.
    • getMin

      public long getMin()
      Returns:
      the (inclusive) minimum of this range.
    • getMax

      public long getMax()
      Returns:
      the (inclusive) maximum of this range.
    • toString

      public  toString()
      Overrides:
       in class 
    • readFrom

      public static ShardLongFieldRange readFrom(StreamInput in) throws
      Throws:
    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
    • equals

      public boolean equals( o)
      Overrides:
       in class 
    • hashCode

      public int hashCode()
      Overrides:
       in class