Class RadiusBound
- java.lang.Object
-
- org.apache.druid.collections.spatial.search.RectangularBound
-
- org.apache.druid.collections.spatial.search.RadiusBound
-
- All Implemented Interfaces:
Bound
public class RadiusBound extends RectangularBound
-
-
Constructor Summary
Constructors Constructor Description RadiusBound(float[] coords, float radius)
RadiusBound(float[] coords, float radius, int limit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(float[] otherCoords)
Iterable<ImmutablePoint>
filter(Iterable<ImmutablePoint> points)
byte[]
getCacheKey()
float[]
getCoords()
float
getRadius()
-
Methods inherited from class org.apache.druid.collections.spatial.search.RectangularBound
equals, getLimit, getMaxCoords, getMinCoords, getNumDims, hashCode, overlaps
-
-
-
-
Method Detail
-
getCoords
public float[] getCoords()
-
getRadius
public float getRadius()
-
contains
public boolean contains(float[] otherCoords)
- Specified by:
contains
in interfaceBound
- Overrides:
contains
in classRectangularBound
-
filter
public Iterable<ImmutablePoint> filter(Iterable<ImmutablePoint> points)
- Specified by:
filter
in interfaceBound
- Overrides:
filter
in classRectangularBound
-
getCacheKey
public byte[] getCacheKey()
- Specified by:
getCacheKey
in interfaceBound
- Overrides:
getCacheKey
in classRectangularBound
-
-