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 java.lang.Object
implements Writeable, org.elasticsearch.common.xcontent.ToXContentObject
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent

    org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

    Writeable.Reader<V>, Writeable.Writer<V>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected double from  
    static org.elasticsearch.common.ParseField FROM_FIELD  
    protected java.lang.String fromAsStr  
    protected java.lang.String key  
    static org.elasticsearch.common.ParseField KEY_FIELD  
    protected double to  
    static org.elasticsearch.common.ParseField TO_FIELD  
    protected java.lang.String toAsStr  

    Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors 
    Constructor Description
    Range​(java.lang.String key, java.lang.Double from, java.lang.Double to)  
    Range​(java.lang.String key, java.lang.Double from, java.lang.String fromAsStr, java.lang.Double to, java.lang.String toAsStr)  
    Range​(java.lang.String key, java.lang.String from, java.lang.String to)  
    Range​(StreamInput in)
    Read from a stream.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    static RangeAggregator.Range fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)  
    double getFrom()  
    java.lang.String getFromAsString()  
    java.lang.String getKey()  
    double getTo()  
    java.lang.String getToAsString()  
    int hashCode()  
    java.lang.String toString()  
    org.elasticsearch.common.xcontent.XContentBuilder toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)  
    void writeTo​(StreamOutput out)
    Write this into the StreamOutput.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject

    isFragment
  • Field Details

    • KEY_FIELD

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

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

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

      protected final java.lang.String key
    • from

      protected final double from
    • fromAsStr

      protected final java.lang.String fromAsStr
    • to

      protected final double to
    • toAsStr

      protected final java.lang.String toAsStr
  • Constructor Details

    • Range

      public Range​(java.lang.String key, java.lang.Double from, java.lang.Double to)
    • Range

      public Range​(java.lang.String key, java.lang.String from, java.lang.String to)
    • Range

      public Range​(StreamInput in) throws java.io.IOException
      Read from a stream.
      Throws:
      java.io.IOException
    • Range

      public Range​(java.lang.String key, java.lang.Double from, java.lang.String fromAsStr, java.lang.Double to, java.lang.String toAsStr)
  • Method Details

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

      public double getFrom()
    • getTo

      public double getTo()
    • getFromAsString

      public java.lang.String getFromAsString()
    • getToAsString

      public java.lang.String getToAsString()
    • getKey

      public java.lang.String getKey()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • fromXContent

      public static RangeAggregator.Range fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException
      Throws:
      java.io.IOException
    • toXContent

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

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

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object