Class InternalGeoBounds
java.lang.Object
org.opensearch.search.aggregations.InternalAggregation
org.opensearch.geo.search.aggregations.metrics.InternalGeoBounds
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentFragment,GeoBounds,Aggregation
Implementation of geo bounds agg
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.search.aggregations.InternalAggregation
InternalAggregation.ReduceContext, InternalAggregation.ReduceContextBuilderNested classes/interfaces inherited from interface org.opensearch.search.aggregations.Aggregation
Aggregation.CommonFieldsNested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V extends Object>, Writeable.Writer<V extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doublefinal doublefinal doublefinal doublefinal doublefinal doublefinal booleanFields inherited from class org.opensearch.search.aggregations.InternalAggregation
metadata, nameFields inherited from interface org.opensearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITERFields inherited from interface org.opensearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionInternalGeoBounds(String name, double top, double bottom, double posLeft, double posRight, double negLeft, double negRight, boolean wrapLongitude, Map<String, Object> metadata) Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionGet the bottom-right location of the bounding box.protected voiddoWriteTo(StreamOutput out) doXContentBody(XContentBuilder builder, ToXContent.Params params) booleangetProperty(List<String> path) inthashCode()protected booleanreduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext) topLeft()Get the top-left location of the bounding box.Methods inherited from class org.opensearch.search.aggregations.InternalAggregation
copyWithRewritenBuckets, forEachBucket, getMetadata, getName, getProperty, getType, isMapped, mergePipelineTreeForBWCSerialization, pipelineAggregatorsForBwcSerialization, readSize, reducePipelines, sortValue, sortValue, toString, toXContent, writeSize, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.search.aggregations.Aggregation
getMetadata, getName, getTypeMethods inherited from interface org.opensearch.common.xcontent.ToXContent
toXContentMethods inherited from interface org.opensearch.common.xcontent.ToXContentFragment
isFragment
-
Field Details
-
top
public final double top -
bottom
public final double bottom -
posLeft
public final double posLeft -
posRight
public final double posRight -
negLeft
public final double negLeft -
negRight
public final double negRight -
wrapLongitude
public final boolean wrapLongitude
-
-
Constructor Details
-
InternalGeoBounds
-
InternalGeoBounds
Read from a stream.- Throws:
IOException
-
-
Method Details
-
doWriteTo
- Specified by:
doWriteToin classInternalAggregation- Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
reduce
public InternalAggregation reduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext) - Specified by:
reducein classInternalAggregation
-
mustReduceOnSingleInternalAgg
protected boolean mustReduceOnSingleInternalAgg()- Specified by:
mustReduceOnSingleInternalAggin classInternalAggregation
-
getProperty
- Specified by:
getPropertyin classInternalAggregation
-
doXContentBody
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
doXContentBodyin classInternalAggregation- Throws:
IOException
-
topLeft
Description copied from interface:GeoBoundsGet the top-left location of the bounding box. -
bottomRight
Description copied from interface:GeoBoundsGet the bottom-right location of the bounding box.- Specified by:
bottomRightin interfaceGeoBounds
-
equals
- Overrides:
equalsin classInternalAggregation
-
hashCode
public int hashCode()- Overrides:
hashCodein classInternalAggregation
-