Class RectangularBound
- java.lang.Object
-
- org.apache.druid.collections.spatial.search.RectangularBound
-
- All Implemented Interfaces:
Bound
- Direct Known Subclasses:
PolygonBound
,RadiusBound
public class RectangularBound extends Object implements Bound
-
-
Constructor Summary
Constructors Constructor Description RectangularBound(float[] minCoords, float[] maxCoords)
RectangularBound(float[] minCoords, float[] maxCoords, int limit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(float[] coords)
boolean
equals(Object o)
Iterable<ImmutablePoint>
filter(Iterable<ImmutablePoint> points)
byte[]
getCacheKey()
int
getLimit()
float[]
getMaxCoords()
float[]
getMinCoords()
int
getNumDims()
int
hashCode()
boolean
overlaps(ImmutableNode node)
-
-
-
Method Detail
-
getMinCoords
public float[] getMinCoords()
-
getMaxCoords
public float[] getMaxCoords()
-
getNumDims
public int getNumDims()
- Specified by:
getNumDims
in interfaceBound
-
overlaps
public boolean overlaps(ImmutableNode node)
-
filter
public Iterable<ImmutablePoint> filter(Iterable<ImmutablePoint> points)
-
getCacheKey
public byte[] getCacheKey()
- Specified by:
getCacheKey
in interfaceBound
-
-