com.here.platform.location.inmemory.graph
TiledRangeBasedPropertyMap
Companion object TiledRangeBasedPropertyMap
abstract class TiledRangeBasedPropertyMap[T, U] extends RangeBasedPropertyMap[Vertex, U]
Unifies multiple RangeBasedPropertyTiles, to enable using them transparently to look up property values by com.here.platform.location.inmemory.graph.Vertex.
TiledRangeBasedPropertyMap supports properties of type U
that are represented by
a different type T
inside the underlying RangeBasedPropertyTiles.
In this case, property values are converted from one type to the other whenever they are retrieved.
See also TiledRangeBasedPropertyMap.transform
- T
Type of the property values inside the RangeBasedPropertyTiles
- U
Type of the property values returned by this RangeBasedPropertyMap
- Alphabetic
- By Inheritance
- TiledRangeBasedPropertyMap
- RangeBasedPropertyMap
- PropertyMap
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
TiledRangeBasedPropertyMap(tileById: (TileId) ⇒ Option[RangeBasedPropertyTile[T]], default: IndexedSeq[RangeBasedProperty[U]] = IndexedSeq.empty)
- tileById
Used to retrieve the data tiles by their ID, if they exist
- default
Default sequence of RangeBasedProperties returned when no property applies to the given Vertex. Unless specified, this is an empty sequence.
Abstract Value Members
-
abstract
def
transform(value: T): U
Converts the value of a property from its representation inside the underlying RangeBasedPropertyTile to the form that will be returned to the user.
Converts the value of a property from its representation inside the underlying RangeBasedPropertyTile 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(key: Vertex): Seq[RangeBasedProperty[U]]
Look up all range-based properties for a given
key
.Look up all range-based properties for a given
key
.- returns
The sequence of non-overlapping range-based properties, in ascending order by start offset, then end offset
- Definition Classes
- TiledRangeBasedPropertyMap → RangeBasedPropertyMap → PropertyMap
- Note
Consecutive calls with the same arguments must return the ranges in the same order
,Two ranges r1 and r2 are non-overlapping iff
r1.start >= r2.end || r1.end <= r2.start
-
def
apply(key: Vertex, offset: Double): Option[RangeBasedProperty[U]]
Look up the range-based property for a given
key
andoffset
.Look up the range-based property for a given
key
andoffset
.The last range containing the
offset
is returned, so when the end offset O of the range R1 equals the start offset of the range R2 (the ranges are adjacent to each other), apply(key, O) returns R2.- Definition Classes
- RangeBasedPropertyMap
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
contains(key: Vertex): 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
- TiledRangeBasedPropertyMap → PropertyMap
-
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()