Class RangeAggregator.Range
java.lang.Object
org.opensearch.search.aggregations.bucket.range.RangeAggregator.Range
- All Implemented Interfaces:
Writeable
,org.opensearch.common.xcontent.ToXContent
,org.opensearch.common.xcontent.ToXContentObject
- Direct Known Subclasses:
GeoDistanceAggregationBuilder.Range
- Enclosing class:
- RangeAggregator
public static class RangeAggregator.Range
extends Object
implements Writeable, org.opensearch.common.xcontent.ToXContentObject
Range for the range aggregator
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
org.opensearch.common.xcontent.ToXContent.DelegatingMapParams, org.opensearch.common.xcontent.ToXContent.MapParams, org.opensearch.common.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final double
static final org.opensearch.common.ParseField
protected final String
protected final String
static final org.opensearch.common.ParseField
static final org.opensearch.common.xcontent.ConstructingObjectParser<RangeAggregator.Range,
Void> protected final double
static final org.opensearch.common.ParseField
protected final String
Fields inherited from interface org.opensearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
getFrom()
getKey()
double
getTo()
int
hashCode()
toString()
org.opensearch.common.xcontent.XContentBuilder
toXContent
(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.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.opensearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
KEY_FIELD
public static final org.opensearch.common.ParseField KEY_FIELD -
FROM_FIELD
public static final org.opensearch.common.ParseField FROM_FIELD -
TO_FIELD
public static final org.opensearch.common.ParseField TO_FIELD -
key
-
from
protected final double from -
fromAsStr
-
to
protected final double to -
toAsStr
-
PARSER
public static final org.opensearch.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
-
toString
-
toXContent
public org.opensearch.common.xcontent.XContentBuilder toXContent(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.opensearch.common.xcontent.ToXContent
- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-