Module org.elasticsearch.server
Package org.elasticsearch.common.geo
Class BoundingBox<T extends SpatialPoint>
java.lang.Object
org.elasticsearch.common.geo.BoundingBox<T>
- All Implemented Interfaces:
GenericNamedWriteable,NamedWriteable,VersionedNamedWriteable,Writeable,ToXContent,ToXContentFragment
- Direct Known Subclasses:
GeoBoundingBox
public abstract class BoundingBox<T extends SpatialPoint>
extends Object
implements ToXContentFragment, GenericNamedWriteable
A class representing a Bounding-Box for use by Geo and Cartesian queries and aggregations
that deal with extents/rectangles representing rectangular areas of interest.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classBoundingBox.BoundsParser<T extends BoundingBox<? extends SpatialPoint>>Nested 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 TypeFieldDescriptionstatic final ParseFieldprotected final Tstatic final ParseFieldstatic final ParseFieldprotected final TFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal doublebottom()booleaninthashCode()booleanfinal doubleleft()final doubleright()final doubletop()topLeft()toString()toXContent(XContentBuilder builder, ToXContent.Params params) abstract XContentBuildertoXContentFragment(XContentBuilder builder) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getMinimalSupportedVersion, getWriteableName, supportsVersion
-
Field Details
-
BOUNDS_FIELD
-
TOP_LEFT_FIELD
-
BOTTOM_RIGHT_FIELD
-
topLeft
-
bottomRight
-
-
Constructor Details
-
BoundingBox
-
-
Method Details
-
isUnbounded
public boolean isUnbounded() -
topLeft
-
bottomRight
-
top
public final double top() -
bottom
public final double bottom() -
left
public final double left() -
right
public final double right() -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
toXContentFragment
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-