Add Geometry::estimateMemorySize() APISee original GitHub issue
I’m using ESRI Geometry API to provide geospatial query support in Presto ( https://prestodb.io/ ) and I need to calculate how much memory individual Geometry objects occupy. I’m using ClassLayout.parseClass to compute the base size of an object and then add on sizes of arrays, lists, etc. I need to be able to write this code:
private static final int MULTI_POINT_IMPL_INSTANCE_SIZE = ClassLayout.parseClass(MultiPointImpl.class).instanceSize(); private static final int MULTI_PATH_IMPL_INSTANCE_SIZE = ClassLayout.parseClass(MultiPathImpl.class).instanceSize();
But I can’t because MultiPointImpl and MultiPathImpl classes are package private.
Would it be possible to make them public?
- Created 6 years ago
- Comments:15 (15 by maintainers)