Class TiledUndirectedPropertyMap<T>

java.lang.Object
com.here.platform.location.inmemory.graph.TiledUndirectedPropertyMap<T>
All Implemented Interfaces:
com.here.platform.location.core.graph.PropertyMap<Vertex,T>

public class TiledUndirectedPropertyMap<T> extends Object implements com.here.platform.location.core.graph.PropertyMap<Vertex,T>
A property map for properties that do not depend on the direction of a vertex (segment properties).

See also UndirectedPropertyTile for details on the data format used by this class.

Note:
Undirected (i.e. Segment) properties have the same value for both vertices corresponding to a segment. Therefore, we can store a single value for both to reduce memory usage.

param: tileById Used to retrieve the data tiles by their ID, if they exist

  • Constructor Details

  • Method Details

    • apply

      public T apply(Vertex key)
      Specified by:
      apply in interface com.here.platform.location.core.graph.PropertyMap<Vertex,T>
    • contains

      public boolean contains(Vertex key)
      Specified by:
      contains in interface com.here.platform.location.core.graph.PropertyMap<Vertex,T>