Class TiledEdgePropertyMap<T,U>

java.lang.Object
com.here.platform.location.inmemory.graph.TiledEdgePropertyMap<T,U>
All Implemented Interfaces:
com.here.platform.location.core.graph.PropertyMap<Edge,U>
Direct Known Subclasses:
TiledEdgePropertyMap.Identity

public abstract class TiledEdgePropertyMap<T,U> extends Object implements com.here.platform.location.core.graph.PropertyMap<Edge,U>
A PropertyMap[Edge, T] that retrieves edge attribute values from multiple EdgePropertyTiles.

For a given edge, TiledEdgePropertyMap first uses tileById to retrieve the propertyTile that has the same tile ID as the Edge source Vertex. Then, TiledEdgePropertyMap retrieves the attribute value from this EdgePropertyTile by calling propertyTile.values(edge.index.value).

If, for a given tile ID, the mapping function returns an EdgePropertyTile that has a different tile ID, apply throws a RuntimeException.

param: tileById Used to retrieve a data tile by its ID, if it exists

  • Constructor Details

    • TiledEdgePropertyMap

      public TiledEdgePropertyMap(scala.Function1<TileId,scala.Option<EdgePropertyTile<T>>> tileById)
  • Method Details

    • apply

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

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