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 InternalGeoBoundsbooleanReturns the name of the writeable objectinthashCode()reduce(List<InternalAggregation> aggregations, AggregationReduceContext reduceContext) Reduces the given aggregations to a single one and returns it.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, 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
-
reduce
public InternalAggregation reduce(List<InternalAggregation> aggregations, AggregationReduceContext reduceContext) Description copied from class:InternalAggregationReduces 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:
reducein classInternalAggregation- See Also:
-
selectCoordinate
- Specified by:
selectCoordinatein classInternalBounds<GeoPoint>
-
resolveBoundingBox
- Specified by:
resolveBoundingBoxin classInternalBounds<GeoPoint>
-
equals
- Overrides:
equalsin classInternalAggregation
-
hashCode
public int hashCode()- Overrides:
hashCodein classInternalAggregation
-