class VirtualTileIndexCodec extends VirtualIndexCodec[Vertex, Edge]
This is an experimental API. It may be removed or changed from one version to the next.
Default VirtualIndexCodec for Vertex and Edge.
Virtual vertices and edges are encoded inside the standard
Vertex /
Edge types by
using the reserved tile id -1 as a sentinel value that cannot appear in real map data.
- A 'virtual vertex' is a Vertex with
tileId == TileId(-1). Itsindexfield holds the zero-based position of the virtual vertex the patched graph's virtual vertex array. - A 'virtual edge' is an Edge whose source
is a virtual vertex. Its
indexfield holds the position of the edge in the patched graph's CSR edge array. The target vertex is resolved by patched-graph adjacency, not encoded in Edge.
- Annotations
- @Experimental()
- Note
A ready-to-use implicit instance of this class is available via Implicits.virtualTileIndexCodec. Import Implicits
._to bring it into scope automatically wherever aVirtualIndexCodec[Vertex, Edge]implicit is required.
- Alphabetic
- By Inheritance
- VirtualTileIndexCodec
- VirtualIndexCodec
- VirtualVertexCodec
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new VirtualTileIndexCodec()
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isVirtualEdge(e: Edge): Boolean
Returns
trueifeis a virtual edge, i.e.Returns
trueifeis a virtual edge, i.e. an edge whose source is a virtual vertex.- Definition Classes
- VirtualTileIndexCodec → VirtualIndexCodec
- def isVirtualVertex(v: Vertex): Boolean
Returns
trueifvis a virtual vertex, i.e.Returns
trueifvis a virtual vertex, i.e. a synthetic vertex introduced by a patch.- Definition Classes
- VirtualTileIndexCodec → VirtualVertexCodec
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def virtualEdge(index: VirtualEdgeIndex, source: Vertex, target: Vertex): Edge
Creates a virtual edge identified by its index, source, and target.
Creates a virtual edge identified by its index, source, and target.
This is the inverse of virtualEdgeIndex:
virtualEdgeIndex(virtualEdge(i, s, t)) == i.- source
The source vertex of the edge (a virtual vertex).
- target
The target vertex of the edge (virtual or original).
- Definition Classes
- VirtualTileIndexCodec → VirtualIndexCodec
- def virtualEdgeIndex(e: Edge): VirtualEdgeIndex
Returns the zero-based index of a virtual edge of the patched graph.
Returns the zero-based index of a virtual edge of the patched graph.
- e
A virtual edge.
- Definition Classes
- VirtualTileIndexCodec → VirtualIndexCodec
- def virtualVertex(index: VirtualVertexIndex): Vertex
Creates the virtual vertex that corresponds to the given index.
Creates the virtual vertex that corresponds to the given index.
This is the inverse of virtualVertexIndex:
virtualVertexIndex(virtualVertex(i)) == i.- index
Zero-based index into the virtual vertex space.
- Definition Classes
- VirtualTileIndexCodec → VirtualVertexCodec
- def virtualVertexIndex(v: Vertex): VirtualVertexIndex
Returns the zero-based index of a virtual vertex.
Returns the zero-based index of a virtual vertex.
- v
A virtual vertex.
- Definition Classes
- VirtualTileIndexCodec → VirtualVertexCodec
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)