Class RangeAggregator.Range

java.lang.Object
org.elasticsearch.search.aggregations.bucket.range.RangeAggregator.Range
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject
Direct Known Subclasses:
GeoDistanceAggregationBuilder.Range
Enclosing class:
RangeAggregator

public static class RangeAggregator.Range extends Object implements Writeable, org.elasticsearch.xcontent.ToXContentObject
  • Field Details

    • KEY_FIELD

      public static final org.elasticsearch.xcontent.ParseField KEY_FIELD
    • FROM_FIELD

      public static final org.elasticsearch.xcontent.ParseField FROM_FIELD
    • TO_FIELD

      public static final org.elasticsearch.xcontent.ParseField TO_FIELD
    • key

      protected final String key
    • from

      protected final double from
    • originalFrom

      protected final Double originalFrom
    • fromAsStr

      protected final String fromAsStr
    • to

      protected final double to
    • originalTo

      protected final Double originalTo
    • toAsStr

      protected final String toAsStr
    • PARSER

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<RangeAggregator.Range,Void> PARSER
  • Constructor Details

  • Method Details

    • writeTo

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

      public double getFrom()
    • getTo

      public double getTo()
    • getOriginalFrom

      public Double getOriginalFrom()
    • getOriginalTo

      public Double getOriginalTo()
    • getFromAsString

      public String getFromAsString()
    • getToAsString

      public String getToAsString()
    • getKey

      public String getKey()
    • matches

      public boolean matches(double value)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object