Class RangeAggregator.Range
- java.lang.Object
-
- org.elasticsearch.search.aggregations.bucket.range.RangeAggregator.Range
-
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
- Direct Known Subclasses:
GeoDistanceAggregationBuilder.Range
- Enclosing class:
- RangeAggregator
public static class RangeAggregator.Range extends Object implements Writeable, ToXContentObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, 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 doublefromstatic ParseFieldFROM_FIELDprotected StringfromAsStrprotected Stringkeystatic ParseFieldKEY_FIELDprotected doubletostatic ParseFieldTO_FIELDprotected StringtoAsStr-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static RangeAggregator.RangefromXContent(XContentParser parser)doublegetFrom()StringgetFromAsString()StringgetKey()doublegetTo()StringgetToAsString()inthashCode()StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(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 Detail
-
KEY_FIELD
public static final ParseField KEY_FIELD
-
FROM_FIELD
public static final ParseField FROM_FIELD
-
TO_FIELD
public static final 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
-
-
Constructor Detail
-
Range
public Range(StreamInput in) throws IOException
Read from a stream.- Throws:
IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getFrom
public double getFrom()
-
getTo
public double getTo()
-
getFromAsString
public String getFromAsString()
-
getToAsString
public String getToAsString()
-
getKey
public String getKey()
-
fromXContent
public static RangeAggregator.Range fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-