c

com.here.platform.location.inmemory.graph

RangeBasedPropertyTile

class RangeBasedPropertyTile[T] extends AnyRef

Contains the range-based property data for a single tile.

This tile doesn't accept overlapping ranges.

A range-based vertex property is a property that potentially applies to only a part of a vertex. The Location Library uses a start and end point to define the part of the vertex to which the range-based property applies. These start and end points are represented by their relative offsets on the Vertex (values between 0 and 1).

The storage format for these ranges contains two levels of information: startIndices, and the triplets (startOffsets(j), endOffsets(j), values(j)).

The triplets (startOffsets(j), endOffsets(j), values(j)) define the RangeBasedProperties for every Vertex that is contained in a partition.

startIndices indicates which RangeBasedProperty apply to a given Vertex. An index i in 0..startIndices.size-2 corresponds to a VertexIndex and represents the index of a Vertex inside a partition. The RangeBasedProperties whose corresponding indices j are between startIndices(i) and startIndices(i+1) - 1 apply to the Vertex i.

If startIndices(i) == startIndices(i+1), Vertex i has no RangeBasedProperties.

Note that the last value of startIndices does not correspond to any Vertex. This value must be equal to startOffsets.length. This value allows calculating the RangeBasedProperties that apply to the last Vertex the same way as for all the other Vertices.

Note

Although this object contains Arrays, you should treat it as immutable.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RangeBasedPropertyTile
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RangeBasedPropertyTile(tileId: TileId, firstRangeIndices: Array[Int], startOffsets: Array[Double], endOffsets: Array[Double], values: Array[T])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. val endOffsets: Array[Double]
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. val firstRangeIndices: Array[Int]
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. val startOffsets: Array[Double]
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. val tileId: TileId
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. val values: Array[T]
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped