Module org.elasticsearch.server
Class InternalGeoBounds
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.metrics.InternalBounds<GeoPoint>
org.elasticsearch.search.aggregations.metrics.InternalGeoBounds
- All Implemented Interfaces:
NamedWriteable
,Writeable
,Aggregation
,GeoBounds
,SpatialBounds<GeoPoint>
,ToXContent
,ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
Nested classes/interfaces inherited from interface org.elasticsearch.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
Modifier and TypeFieldDescriptionfinal double
final double
final double
final double
final boolean
Fields inherited from class org.elasticsearch.search.aggregations.metrics.InternalBounds
bottom, top
Fields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metadata, name
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionInternalGeoBounds
(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 TypeMethodDescriptionprotected void
doWriteTo
(StreamOutput out) static InternalGeoBounds
boolean
Returns the name of the writeable objectint
hashCode()
reduce
(List<InternalAggregation> aggregations, AggregationReduceContext reduceContext) Reduces the given aggregations to a single one and returns it.protected GeoBoundingBox
protected Object
selectCoordinate
(String coordinateString, GeoPoint cornerPoint) Methods inherited from class org.elasticsearch.search.aggregations.metrics.InternalBounds
bottomRight, doXContentBody, finalizeSampling, getProperty, mustReduceOnSingleInternalAgg, topLeft
Methods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
canLeadReduction, copyWithRewritenBuckets, forEachBucket, getMetadata, getName, getProperty, getType, readSize, reducePipelines, sortValue, sortValue, toString, toXContent, writeSize, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetadata, getName, getType
Methods inherited from interface org.elasticsearch.search.aggregations.metrics.SpatialBounds
bottomRight, topLeft
Methods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
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
- Overrides:
doWriteTo
in classInternalBounds<GeoPoint>
- Throws:
IOException
-
empty
public static InternalGeoBounds empty(String name, boolean wrapLongitude, Map<String, Object> metadata) -
getWriteableName
Description copied from interface:NamedWriteable
Returns the name of the writeable object- Specified by:
getWriteableName
in interfaceNamedWriteable
-
reduce
public InternalAggregation reduce(List<InternalAggregation> aggregations, AggregationReduceContext reduceContext) Description copied from class:InternalAggregation
Reduces the given aggregations to a single one and returns it. In most cases, the assumption will be the all given aggregations are of the same type (the same type as this aggregation). For best efficiency, when implementing, try reusing an existing instance (typically the first in the given list) to save on redundant object construction.- Specified by:
reduce
in classInternalAggregation
- See Also:
-
selectCoordinate
- Specified by:
selectCoordinate
in classInternalBounds<GeoPoint>
-
resolveBoundingBox
- Specified by:
resolveBoundingBox
in classInternalBounds<GeoPoint>
-
equals
- Overrides:
equals
in classInternalAggregation
-
hashCode
public int hashCode()- Overrides:
hashCode
in classInternalAggregation
-