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:
Writeable
,ToXContent
,ToXContentFragment
- Direct Known Subclasses:
GeoBoundingBox
public abstract class BoundingBox<T extends SpatialPoint>
extends Object
implements ToXContentFragment, Writeable
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 class
BoundingBox.BoundsParser<T extends BoundingBox<? extends SpatialPoint>>
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
FieldsModifier and TypeFieldDescriptionstatic final ParseField
protected final T
static final ParseField
static final ParseField
protected final T
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal double
bottom()
boolean
int
hashCode()
boolean
final double
left()
final double
right()
final double
top()
topLeft()
toString()
toXContent
(XContentBuilder builder, ToXContent.Params params) abstract XContentBuilder
toXContentFragment
(XContentBuilder builder) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
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:
toXContent
in interfaceToXContent
- Throws:
IOException
-
toXContentFragment
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-