Class RectangularBound
- java.lang.Object
-
- org.apache.druid.collections.spatial.search.RectangularBound
-
- All Implemented Interfaces:
Bound<float[],ImmutableFloatPoint>
- Direct Known Subclasses:
PolygonBound,RadiusBound
public class RectangularBound extends Object implements Bound<float[],ImmutableFloatPoint>
-
-
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 booleancontains(float[] coords)booleanequals(Object o)Iterable<ImmutableFloatPoint>filter(Iterable<ImmutableFloatPoint> points)byte[]getCacheKey()intgetLimit()float[]getMaxCoords()float[]getMinCoords()intgetNumDims()inthashCode()booleanoverlaps(ImmutableNode<float[]> node)
-
-
-
Method Detail
-
getMinCoords
public float[] getMinCoords()
-
getMaxCoords
public float[] getMaxCoords()
-
getLimit
public int getLimit()
- Specified by:
getLimitin interfaceBound<float[],ImmutableFloatPoint>
-
getNumDims
public int getNumDims()
- Specified by:
getNumDimsin interfaceBound<float[],ImmutableFloatPoint>
-
overlaps
public boolean overlaps(ImmutableNode<float[]> node)
- Specified by:
overlapsin interfaceBound<float[],ImmutableFloatPoint>
-
contains
public boolean contains(float[] coords)
- Specified by:
containsin interfaceBound<float[],ImmutableFloatPoint>
-
filter
public Iterable<ImmutableFloatPoint> filter(Iterable<ImmutableFloatPoint> points)
- Specified by:
filterin interfaceBound<float[],ImmutableFloatPoint>
-
getCacheKey
public byte[] getCacheKey()
- Specified by:
getCacheKeyin interfaceBound<float[],ImmutableFloatPoint>
-
-