Class ShardLongFieldRange

java.lang.Object
org.elasticsearch.index.shard.ShardLongFieldRange
All Implemented Interfaces:
Writeable

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

  • 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 java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • readFrom

      public static ShardLongFieldRange readFrom​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
    • writeTo

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

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object