Class RectangularBound
java.lang.Object
org.apache.druid.collections.spatial.search.RectangularBound
- All Implemented Interfaces:
Bound<float[],ImmutableFloatPoint>
- Direct Known Subclasses:
PolygonBound,RadiusBound
-
Constructor Summary
ConstructorsConstructorDescriptionRectangularBound(float[] minCoords, float[] maxCoords) RectangularBound(float[] minCoords, float[] maxCoords, int limit) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(float[] coords) booleancontainsObj(Object input) containsObj is mainly used to create object matechers on top custom/extensible spatial column, it receives it as object and corresponding implementations need to logic to unpack the objects and invoke containsbooleanfilter(Iterable<ImmutableFloatPoint> points) byte[]intgetLimit()float[]float[]intinthashCode()booleanoverlaps(ImmutableNode<float[]> node)
-
Constructor Details
-
RectangularBound
public RectangularBound(float[] minCoords, float[] maxCoords, int limit) -
RectangularBound
public RectangularBound(float[] minCoords, float[] maxCoords)
-
-
Method Details
-
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
- Specified by:
overlapsin interfaceBound<float[],ImmutableFloatPoint>
-
contains
public boolean contains(float[] coords) - Specified by:
containsin interfaceBound<float[],ImmutableFloatPoint>
-
containsObj
Description copied from interface:BoundcontainsObj is mainly used to create object matechers on top custom/extensible spatial column, it receives it as object and corresponding implementations need to logic to unpack the objects and invoke contains- Specified by:
containsObjin interfaceBound<float[],ImmutableFloatPoint> - Parameters:
input- Takes an object spatial column as input- Returns:
- boolean value if it falls within given bound
-
filter
- Specified by:
filterin interfaceBound<float[],ImmutableFloatPoint>
-
getCacheKey
public byte[] getCacheKey()- Specified by:
getCacheKeyin interfaceBound<float[],ImmutableFloatPoint>
-
equals
-
hashCode
public int hashCode()
-