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.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Modifier and TypeFieldDescriptionprotected double
static org.elasticsearch.common.xcontent.ParseField
protected String
protected String
static org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ConstructingObjectParser<RangeAggregator.Range,Void>
protected double
static org.elasticsearch.common.xcontent.ParseField
protected String
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
double
getFrom()
getKey()
double
getTo()
int
hashCode()
boolean
matches(double value)
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.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 preferfrom
andto
parameters if they are non-null and finite. Otherwise they parse fromfromrStr
andtoStr
. -
Range
-
Range
-
Range
Read from a stream.- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in 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:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-