Class RangeAggregator.Range

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

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

    • KEY_FIELD

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

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

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

      protected final String key
    • from

      protected final double from
    • fromAsStr

      protected final String fromAsStr
    • to

      protected final double to
    • toAsStr

      protected final String toAsStr
    • PARSER

      public static final org.elasticsearch.common.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()
    • 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.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      IOException
    • hashCode

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

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