Class TileWeighers
Each weigher estimates the in-memory size (in bytes) of a decoded tile. Used by caching mechanisms to evaluate memory consumption and decide when to evict tiles based on cache constraints.
Using accurate weigher functions helps to optimize memory usage and maintain efficient cache behavior.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
edgeProperty
(EdgePropertyTile<Object> tile) Weigher for the Edge Property tile.static int
static int
geometry
(GeometryTile tile) Weigher for the Geometry tile.static int
mapping
(MappingTile tile) Weigher for the Mapping tile.static int
Weigher for the Multi Property tile.static int
static int
Weigher for the Range Based Property tile.static int
static int
routingGraph
(GraphTile tile) Weigher for the Graph tile.static int
tmcTable
(com.here.platform.pb.location.optimizedmap.tmc.v2.tmc.TmcTablePartition partition) Weigher for the Tmc Table tile.static int
Weigher for the Undirected Property tile.
-
Constructor Details
-
TileWeighers
public TileWeighers()
-
-
Method Details
-
geometry
Weigher for the Geometry tile.Estimates the in-memory size (in bytes) of the given Geometry tile. Used by caching mechanisms to evaluate memory consumption and decide when to evict tiles based on cache constraints.
- Parameters:
tile
- The decoded Geometry tile to estimate.- Returns:
- Estimated size in bytes of the Geometry tile.
-
undirectedProperty
Weigher for the Undirected Property tile.Estimates the in-memory size (in bytes) of the given Undirected Property tile. Used by caching mechanisms to evaluate memory consumption and decide when to evict tiles based on cache constraints.
- Parameters:
tile
- The decoded Undirected Property tile to estimate.- Returns:
- Estimated size in bytes of the Undirected Property tile.
-
mapping
Weigher for the Mapping tile.Estimates the in-memory size (in bytes) of the given Mapping tile. Used by caching mechanisms to evaluate memory consumption and decide when to evict tiles based on cache constraints.
- Parameters:
tile
- The decoded Mapping tile to estimate.- Returns:
- Estimated size in bytes of the Mapping tile.
-
edgeProperty
Weigher for the Edge Property tile.Estimates the in-memory size (in bytes) of the given Edge Property tile. Used by caching mechanisms to evaluate memory consumption and decide when to evict tiles based on cache constraints.
- Parameters:
tile
- The decoded Edge Property tile to estimate.- Returns:
- Estimated size in bytes of the Edge Property tile.
-
routingGraph
Weigher for the Graph tile.Estimates the in-memory size (in bytes) of the given Graph tile. Used by caching mechanisms to evaluate memory consumption and decide when to evict tiles based on cache constraints.
- Parameters:
tile
- The decoded Graph tile to estimate.- Returns:
- Estimated size in bytes of the Graph tile.
-
rangeBasedProperty
Weigher for the Range Based Property tile.Estimates the in-memory size (in bytes) of the given Range Based Property tile. Used by caching mechanisms to evaluate memory consumption and decide when to evict tiles based on cache constraints.
- Parameters:
tile
- The decoded Range Based Property tile to estimate.- Returns:
- Estimated size in bytes of the Range Based Property tile.
-
multiProperty
Weigher for the Multi Property tile.Estimates the in-memory size (in bytes) of the given Multi Property tile. Used by caching mechanisms to evaluate memory consumption and decide when to evict tiles based on cache constraints.
- Parameters:
tile
- The decoded Multi Property tile to estimate.- Returns:
- Estimated size in bytes of the Multi Property tile.
-
tmcTable
public static int tmcTable(com.here.platform.pb.location.optimizedmap.tmc.v2.tmc.TmcTablePartition partition) Weigher for the Tmc Table tile.Estimates the in-memory size (in bytes) of the given Tmc Table tile. Used by caching mechanisms to evaluate memory consumption and decide when to evict tiles based on cache constraints.
- Parameters:
partition
- The decoded Tmc Table tile to estimate.- Returns:
- Estimated size in bytes of the Tmc Table tile.
-
rangeBasedPropertyTileV2
-
pointBasedPropertyTile
-
entityPropertyTile
-