Top Description Fields Constructors Methods
org.h2.mvstore.rtree

pack-priv final Class DefaultSpatial

extends Object
implements Spatial
Class Inheritance
All Implemented Interfaces
org.h2.mvstore.rtree.Spatial
Imports
java.util.Arrays

Class BasicSpatialImpl.
Author
Andrei Tokar

Field Summary

Modifier and TypeField and Description
private final long
private final float[]

Constructor Summary

AccessConstructor and Description
public
DefaultSpatial(long
the id
id
,
float...
min x, max x, min y, max y, and so on
minMax
)

Create a new key.

private

Method Summary

Modifier and TypeMethod and Description
public Spatial
clone(long
for the new Spatial object
id
)

Implements org.h2.mvstore.rtree.Spatial.clone.

Creates a copy of this Spatial object with different id.

public boolean
equalsIgnoringId(Spatial
the other key
o
)

Implements org.h2.mvstore.rtree.Spatial.equalsIgnoringId.

Check whether two objects are equals, but do not compare the id fields.

public long
getId()

Implements org.h2.mvstore.rtree.Spatial.getId.

Get id of this Spatial object

public boolean
isNull()

Implements org.h2.mvstore.rtree.Spatial.isNull.

Test whether this object has no value

public float
max(int
the dimension
dim
)

Implements org.h2.mvstore.rtree.Spatial.max.

Get the maximum value for the given dimension.

public float
min(int
the dimension
dim
)

Implements org.h2.mvstore.rtree.Spatial.min.

Get the minimum value for the given dimension.

public void
setMax(int
the dimension
dim
,
float
the value
x
)

Implements org.h2.mvstore.rtree.Spatial.setMax.

Set the maximum value for the given dimension.

public void
setMin(int
the dimension
dim
,
float
the value
x
)

Implements org.h2.mvstore.rtree.Spatial.setMin.

Set the minimum value for the given dimension.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

idback to summary
private final long id
minMaxback to summary
private final float[] minMax

Constructor Detail

DefaultSpatialback to summary
public DefaultSpatial(long id, float... minMax)

Create a new key.

Parameters
id:long

the id

minMax:float[]

min x, max x, min y, max y, and so on

DefaultSpatialback to summary
private DefaultSpatial(long id, DefaultSpatial other)

Method Detail

cloneback to summary
public Spatial clone(long id)

Implements org.h2.mvstore.rtree.Spatial.clone.

Doc from org.h2.mvstore.rtree.Spatial.clone.

Creates a copy of this Spatial object with different id.

Parameters
id:long

for the new Spatial object

Returns:Spatial

a clone

Annotations
@Override
equalsIgnoringIdback to summary
public boolean equalsIgnoringId(Spatial o)

Implements org.h2.mvstore.rtree.Spatial.equalsIgnoringId.

Doc from org.h2.mvstore.rtree.Spatial.equalsIgnoringId.

Check whether two objects are equals, but do not compare the id fields.

Parameters
o:Spatial

the other key

Returns:boolean

true if the contents are the same

Annotations
@Override
getIdback to summary
public long getId()

Implements org.h2.mvstore.rtree.Spatial.getId.

Doc from org.h2.mvstore.rtree.Spatial.getId.

Get id of this Spatial object

Returns:long

id

Annotations
@Override
isNullback to summary
public boolean isNull()

Implements org.h2.mvstore.rtree.Spatial.isNull.

Doc from org.h2.mvstore.rtree.Spatial.isNull.

Test whether this object has no value

Returns:boolean

true if it is NULL, false otherwise

Annotations
@Override
maxback to summary
public float max(int dim)

Implements org.h2.mvstore.rtree.Spatial.max.

Doc from org.h2.mvstore.rtree.Spatial.max.

Get the maximum value for the given dimension.

Parameters
dim:int

the dimension

Returns:float

the value

Annotations
@Override
minback to summary
public float min(int dim)

Implements org.h2.mvstore.rtree.Spatial.min.

Doc from org.h2.mvstore.rtree.Spatial.min.

Get the minimum value for the given dimension.

Parameters
dim:int

the dimension

Returns:float

the value

Annotations
@Override
setMaxback to summary
public void setMax(int dim, float x)

Implements org.h2.mvstore.rtree.Spatial.setMax.

Doc from org.h2.mvstore.rtree.Spatial.setMax.

Set the maximum value for the given dimension.

Parameters
dim:int

the dimension

x:float

the value

Annotations
@Override
setMinback to summary
public void setMin(int dim, float x)

Implements org.h2.mvstore.rtree.Spatial.setMin.

Doc from org.h2.mvstore.rtree.Spatial.setMin.

Set the minimum value for the given dimension.

Parameters
dim:int

the dimension

x:float

the value

Annotations
@Override