Class DefaultSpatial
java.lang.Object
org.h2.mvstore.rtree.DefaultSpatial
- All Implemented Interfaces:
Spatial
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionDefaultSpatial(long id, float... minMax) Create a new key.privateDefaultSpatial(long id, DefaultSpatial other) -
Method Summary
Modifier and TypeMethodDescriptionclone(long id) Creates a copy of this Spatial object with different id.booleanCheck whether two objects are equals, but do not compare the id fields.longgetId()Get id of this Spatial objectbooleanisNull()Test whether this object has no valuefloatmax(int dim) Get the maximum value for the given dimension.floatmin(int dim) Get the minimum value for the given dimension.voidsetMax(int dim, float x) Set the maximum value for the given dimension.voidsetMin(int dim, float x) Set the minimum value for the given dimension.
-
Field Details
-
id
private final long id -
minMax
private final float[] minMax
-
-
Constructor Details
-
DefaultSpatial
public DefaultSpatial(long id, float... minMax) Create a new key.- Parameters:
id- the idminMax- min x, max x, min y, max y, and so on
-
DefaultSpatial
-
-
Method Details
-
min
-
setMin
-
max
-
setMax
-
clone
-
getId
-
isNull
-
equalsIgnoringId
Description copied from interface:SpatialCheck whether two objects are equals, but do not compare the id fields.- Specified by:
equalsIgnoringIdin interfaceSpatial- Parameters:
o- the other key- Returns:
- true if the contents are the same
-