public class JanusGraphId extends Object
| Constructor and Description |
|---|
JanusGraphId() |
| Modifier and Type | Method and Description |
|---|---|
static long |
fromVertexID(JanusGraphVertex v)
Converts a JanusGraph vertex id of a given vertex to the user provided id as the inverse mapping of
toVertexId(long). |
static long |
fromVertexId(long id)
Converts a JanusGraph vertex id 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 JanusGraph vertex id.
|
public static final long toVertexId(long id)
Graph.addVertex(Object...).id - long idpublic static final long fromVertexId(long id)
toVertexId(long).id - JanusGraph vertex id (must be positive)public static final long fromVertexID(JanusGraphVertex v)
toVertexId(long).v - VertexCopyright © 2012–2017. All rights reserved.