public class IndexableGraphHelper extends Object
| Constructor and Description |
|---|
IndexableGraphHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Vertex |
addUniqueVertex(IndexableGraph graph,
Object id,
Index<Vertex> index,
String uniqueKey,
Object uniqueValue)
Add a vertex to a graph only if no other vertex in the provided Index is indexed by the property key/value pair.
|
public static Vertex addUniqueVertex(IndexableGraph graph, Object id, Index<Vertex> index, String uniqueKey, Object uniqueValue)
graph - the graph to add the vertex toid - the id of the vertex to create (can be null)index - the index to determine if another vertex with the same key/value existsuniqueKey - the key to check on for uniqueness of the vertexuniqueValue - the value to check on for uniqueness of the vertexCopyright © 2010-2014. All Rights Reserved.