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 EdgePropertyTile
s.
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
ATiledEdgePropertyMap
that does not apply any transformation to the values inside theEdgePropertyTile
s before returning them. -
Constructor Summary
ConstructorsConstructorDescriptionTiledEdgePropertyMap
(scala.Function1<TileId, scala.Option<EdgePropertyTile<T>>> tileById) -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.here.platform.location.core.graph.PropertyMap
apply$mcD$sp, apply$mcZ$sp