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
-
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.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doublestatic org.elasticsearch.common.xcontent.ParseFieldprotected Stringprotected Stringstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<RangeAggregator.Range,Void>protected doublestatic org.elasticsearch.common.xcontent.ParseFieldprotected StringFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandoublegetFrom()getKey()doublegetTo()inthashCode()booleanmatches(double value)toString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.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, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
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
-
from
protected final double from -
fromAsStr
-
to
protected final double to -
toAsStr
-
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<RangeAggregator.Range,Void> PARSER
-
-
Constructor Details
-
Range
Build the range. Generally callers should preferRange(String, Double, Double)orRange(String, String, String). If you must call this know that consumers preferfromandtoparameters if they are non-null and finite. Otherwise they parse fromfromrStrandtoStr. -
Range
-
Range
-
Range
Read from a stream.- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getFrom
public double getFrom() -
getTo
public double getTo() -
getFromAsString
-
getToAsString
-
getKey
-
matches
public boolean matches(double value) -
toString
-
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:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-