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
protected AggregatorReducer
getLeaderReducer
(AggregationReduceContext reduceContext, int size) Return an object that Reduces several aggregations to a single one.Returns the name of the writeable objectint
hashCode()
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, getReducer, 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
-
getLeaderReducer
Description copied from class:InternalAggregation
Return an object that Reduces several aggregations to a single one. This method is called whenInternalAggregation.canLeadReduction()
returns true and expects an reducer that produces the right result.- Specified by:
getLeaderReducer
in classInternalAggregation
-
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
-