public static class SpatialQueryFilter.GeometryImage extends Object
Interning a geometry assumes a geometry is already constructed on the heap at the time interning begins. The byte image of geometry provides a more efficient component to hash and associate with a single image of the geometry.
The approach of interning the Geometry prior to construction of a PreparedGeometry lead to excessive memory use. Thus, this class is constructed to hold the prepared geometry and prevent reconstruction of the underlying geometry from a byte array if the Geometry has been interned.
Using this approach increased performance of a large query unit test by 40% and reduced heap memory consumption by roughly 50%.
| Modifier and Type | Field and Description |
|---|---|
byte[] |
geometryBinary |
org.locationtech.jts.geom.prep.PreparedGeometry |
preparedGeometry |
| Constructor and Description |
|---|
GeometryImage(byte[] geometryBinary) |
GeometryImage(org.locationtech.jts.geom.prep.PreparedGeometry preparedGeometry) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
org.locationtech.jts.geom.prep.PreparedGeometry |
getGeometry() |
int |
hashCode() |
void |
init() |
public byte[] geometryBinary
public org.locationtech.jts.geom.prep.PreparedGeometry preparedGeometry
Copyright © 2013–2021. All rights reserved.