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.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doublefinal doublefinal doublefinal doublefinal booleanFields inherited from class org.elasticsearch.search.aggregations.metrics.InternalBounds
bottom, topFields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metadata, nameFields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITERFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, 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 TypeMethodDescriptionprotected voiddoWriteTo(StreamOutput out) static InternalGeoBoundsbooleanprotected AggregatorReducergetLeaderReducer(AggregationReduceContext reduceContext, int size) Return an object that Reduces several aggregations to a single one.Returns the name of the writeable objectinthashCode()protected GeoBoundingBoxprotected ObjectselectCoordinate(String coordinateString, GeoPoint cornerPoint) Methods inherited from class org.elasticsearch.search.aggregations.metrics.InternalBounds
bottomRight, doXContentBody, finalizeSampling, getProperty, mustReduceOnSingleInternalAgg, topLeftMethods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
canLeadReduction, copyWithRewritenBuckets, forEachBucket, getMetadata, getName, getProperty, getReducer, getType, 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.elasticsearch.search.aggregations.Aggregation
getMetadata, getName, getTypeMethods inherited from interface org.elasticsearch.search.aggregations.metrics.SpatialBounds
bottomRight, topLeftMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods 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:
doWriteToin classInternalBounds<GeoPoint>- Throws:
IOException
-
empty
public static InternalGeoBounds empty(String name, boolean wrapLongitude, Map<String, Object> metadata) -
getWriteableName
Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable
-
getLeaderReducer
Description copied from class:InternalAggregationReturn 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:
getLeaderReducerin classInternalAggregation
-
selectCoordinate
- Specified by:
selectCoordinatein classInternalBounds<GeoPoint>
-
resolveBoundingBox
- Specified by:
resolveBoundingBoxin classInternalBounds<GeoPoint>
-
equals
- Overrides:
equalsin classInternalAggregation
-
hashCode
public int hashCode()- Overrides:
hashCodein classInternalAggregation
-