public class TitanId extends Object
Constructor and Description |
---|
TitanId() |
Modifier and Type | Method and Description |
---|---|
static long |
fromVertexId(long id)
Converts a Titan vertex id to the user provided id as the inverse mapping of
toVertexId(long) . |
static long |
fromVertexID(TitanVertex v)
Converts a Titan vertex id of a given vertex to the user provided id as the inverse mapping of
toVertexId(long) . |
static long |
toVertexId(long id)
Converts a user provided long id into a Titan vertex id.
|
public static final long toVertexId(long id)
com.tinkerpop.gremlin.structure.Graph#addVertex(Object)
.id
- long idpublic static final long fromVertexId(long id)
toVertexId(long)
.id
- Titan vertex id (must be positive)public static final long fromVertexID(TitanVertex v)
toVertexId(long)
.v
- VertexCopyright © 2012–2015. All rights reserved.