com.here.platform.location.inmemory.graph
TiledEdgePropertyMap
Companion object TiledEdgePropertyMap
abstract class TiledEdgePropertyMap[T, U] extends 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.
- Alphabetic
- By Inheritance
- TiledEdgePropertyMap
- PropertyMap
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
TiledEdgePropertyMap(tileById: (TileId) ⇒ Option[EdgePropertyTile[T]])
- tileById
Used to retrieve a data tile by its ID, if it exists
Abstract Value Members
-
abstract
def
transform(value: T): U
Converts the value of a property from its representation inside the underlying EdgePropertyTile to the form that will be returned to the user.
Converts the value of a property from its representation inside the underlying EdgePropertyTile to the form that will be returned to the user.
This transformation will be applied every time a value is retrieved and its results will not be cached. For this reason, this method should be as fast as possible.
- Attributes
- protected
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(edge: Edge): U
Retrieves the property value associated with a particular
key
.Retrieves the property value associated with a particular
key
.- Definition Classes
- TiledEdgePropertyMap → PropertyMap
- Exceptions thrown
java.util.NoSuchElementException
if the key is not found
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
contains(edge: Edge): Boolean
Tests whether this PropertyMap contains a value for a particular key.
Tests whether this PropertyMap contains a value for a particular key.
- returns
true
if this PropertyMap contains a value forkey
,false
otherwise
- Definition Classes
- TiledEdgePropertyMap → PropertyMap
-
def
default(edge: Edge): U
Specifies how to handle missing tiles.
Specifies how to handle missing tiles.
If
tileById
returnsNone
for a specific tile ID, the tile is missing, which means that there is no data available.This method lets you tune how this is interpreted.
The default implementation is to throw NoSuchElementException, meaning that trying to access the data of such a tile is an error.
For some properties the missing tile should be interpreted as if all values in the tile are the same default value, depending on the semantics of the property. For example, a missing tile that describes permitted turns for a given edge, might mean that all turns are permitted for all vehicle types. In that case, override this method to provide that default value.
- Attributes
- protected
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()