| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Spatial
the first key a, Spatial the second key b)Overrides org. Implements org. Compare two keys. |
| public boolean | |
| protected Spatial | Returns: the spatial objectthe ID id, float... min x, max x, min y, max y, and so on minMax)Creates spatial object with specified parameters. |
| pack-priv Spatial | Returns: the bounding boxthe object object)Create a bounding box starting with the given object. |
| public Spatial[] | createStorage(int
number of values to hold size)Implements org. Create storage object of array type to hold values |
| public boolean | |
| private float | |
| public float | Returns: the areathe bounding box bounds, Spatial the object add)Get the area increase by extending a to contain b. |
| pack-priv float | Returns: the areathe first object a, Spatial the second object b)Get the combined area of both objects. |
| public int[] | Returns: the indexes of the extremesthe objects list)Get the most extreme pair (elements that are as far apart as possible). |
| public int | getMemory(Spatial
the object obj)Implements abstract org. Implements org. Calculates the amount of used memory in bytes. |
| private static ArrayList | |
| public void | increaseBounds(Spatial
the bounds (may be modified) bounds, Spatial the value add)Increase the bounds in the given spatial object. |
| private void | |
| public boolean | |
| public boolean | |
| public Spatial | read(ByteBuffer
the source buffer buff)Implements abstract org. Implements org. Read an object. |
| public void | write(WriteBuffer
the target buffer buff, Spatial the value k)Implements abstract org. Implements org. Write an object. |
| dimensions | back to summary |
|---|---|
| private final int dimensions | |
| SpatialDataType | back to summary |
|---|---|
| public SpatialDataType(int dimensions) | |
| compare | back to summary |
|---|---|
| public int compare(Spatial a, Spatial b) Overrides org. Implements org. Doc from org. Compare two keys. | |
| contains | back to summary |
|---|---|
| public boolean contains(Spatial bounds, Spatial object) Check whether bounds contains object. | |
| create | back to summary |
|---|---|
| protected Spatial create(long id, float... minMax) Creates spatial object with specified parameters.
| |
| createBoundingBox | back to summary |
|---|---|
| pack-priv Spatial createBoundingBox(Spatial object) Create a bounding box starting with the given object. | |
| createStorage | back to summary |
|---|---|
| public Spatial[] createStorage(int size) Implements org. Doc from org. Create storage object of array type to hold values | |
| equals | back to summary |
|---|---|
| public boolean equals(Spatial a, Spatial b) Check whether two spatial values are equal. | |
| getArea | back to summary |
|---|---|
| private float getArea(Spatial a) | |
| getAreaIncrease | back to summary |
|---|---|
| public float getAreaIncrease(Spatial bounds, Spatial add) Get the area increase by extending a to contain b. | |
| getCombinedArea | back to summary |
|---|---|
| pack-priv float getCombinedArea(Spatial a, Spatial b) Get the combined area of both objects. | |
| getExtremes | back to summary |
|---|---|
| public int[] getExtremes(ArrayList<Spatial> list) Get the most extreme pair (elements that are as far apart as possible). This method is used to split a page (linear split). If no extreme objects could be found, this method returns null. | |
| getMemory | back to summary |
|---|---|
| public int getMemory(Spatial obj) Implements abstract org. Implements org. Doc from org. Calculates the amount of used memory in bytes. | |
| getNotNull | back to summary |
|---|---|
| private static ArrayList | |
| increaseBounds | back to summary |
|---|---|
| public void increaseBounds(Spatial bounds, Spatial add) Increase the bounds in the given spatial object. | |
| increaseMaxInnerBounds | back to summary |
|---|---|
| private void increaseMaxInnerBounds(Spatial bounds, Spatial add) | |
| isInside | back to summary |
|---|---|
| public boolean isInside(Spatial object, Spatial bounds) Check whether object is completely inside bounds and does not touch them. | |
| isOverlap | back to summary |
|---|---|
| public boolean isOverlap(Spatial a, Spatial b) Check whether the two objects overlap. | |
| read | back to summary |
|---|---|
| public Spatial read(ByteBuffer buff) Implements abstract org. Implements org. Doc from org. Read an object.
| |
| write | back to summary |
|---|---|
| public void write(WriteBuffer buff, Spatial k) Implements abstract org. Implements org. Doc from org. Write an object.
| |