public final class TinkerHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
protected static org.apache.tinkerpop.gremlin.structure.Edge |
addEdge(TinkerGraph graph,
TinkerVertex outVertex,
TinkerVertex inVertex,
String label,
Object... keyValues) |
protected static void |
addInEdge(TinkerVertex vertex,
String label,
org.apache.tinkerpop.gremlin.structure.Edge edge) |
protected static void |
addOutEdge(TinkerVertex vertex,
String label,
org.apache.tinkerpop.gremlin.structure.Edge edge) |
static void |
autoUpdateIndex(TinkerEdge edge,
String key,
Object newValue,
Object oldValue) |
static void |
autoUpdateIndex(TinkerVertex vertex,
String key,
Object newValue,
Object oldValue) |
static TinkerGraphComputerView |
createGraphComputerView(TinkerGraph graph,
org.apache.tinkerpop.gremlin.process.computer.GraphFilter graphFilter,
Set<org.apache.tinkerpop.gremlin.process.computer.VertexComputeKey> computeKeys) |
static void |
dropGraphComputerView(TinkerGraph graph) |
static Map<Object,org.apache.tinkerpop.gremlin.structure.Edge> |
getEdges(TinkerGraph graph) |
static Iterator<TinkerEdge> |
getEdges(TinkerVertex vertex,
org.apache.tinkerpop.gremlin.structure.Direction direction,
String... edgeLabels) |
static TinkerGraphComputerView |
getGraphComputerView(TinkerGraph graph) |
static Map<String,List<org.apache.tinkerpop.gremlin.structure.VertexProperty>> |
getProperties(TinkerVertex vertex) |
static Map<Object,org.apache.tinkerpop.gremlin.structure.Vertex> |
getVertices(TinkerGraph graph) |
static Iterator<TinkerVertex> |
getVertices(TinkerVertex vertex,
org.apache.tinkerpop.gremlin.structure.Direction direction,
String... edgeLabels) |
static boolean |
inComputerMode(TinkerGraph graph) |
static List<TinkerEdge> |
queryEdgeIndex(TinkerGraph graph,
String key,
Object value) |
static List<TinkerVertex> |
queryVertexIndex(TinkerGraph graph,
String key,
Object value) |
static void |
removeElementIndex(TinkerEdge edge) |
static void |
removeElementIndex(TinkerVertex vertex) |
static void |
removeIndex(TinkerEdge edge,
String key,
Object value) |
static void |
removeIndex(TinkerVertex vertex,
String key,
Object value) |
protected static org.apache.tinkerpop.gremlin.structure.Edge addEdge(TinkerGraph graph, TinkerVertex outVertex, TinkerVertex inVertex, String label, Object... keyValues)
protected static void addOutEdge(TinkerVertex vertex, String label, org.apache.tinkerpop.gremlin.structure.Edge edge)
protected static void addInEdge(TinkerVertex vertex, String label, org.apache.tinkerpop.gremlin.structure.Edge edge)
public static List<TinkerVertex> queryVertexIndex(TinkerGraph graph, String key, Object value)
public static List<TinkerEdge> queryEdgeIndex(TinkerGraph graph, String key, Object value)
public static boolean inComputerMode(TinkerGraph graph)
public static TinkerGraphComputerView createGraphComputerView(TinkerGraph graph, org.apache.tinkerpop.gremlin.process.computer.GraphFilter graphFilter, Set<org.apache.tinkerpop.gremlin.process.computer.VertexComputeKey> computeKeys)
public static TinkerGraphComputerView getGraphComputerView(TinkerGraph graph)
public static void dropGraphComputerView(TinkerGraph graph)
public static Map<String,List<org.apache.tinkerpop.gremlin.structure.VertexProperty>> getProperties(TinkerVertex vertex)
public static void autoUpdateIndex(TinkerEdge edge, String key, Object newValue, Object oldValue)
public static void autoUpdateIndex(TinkerVertex vertex, String key, Object newValue, Object oldValue)
public static void removeElementIndex(TinkerVertex vertex)
public static void removeElementIndex(TinkerEdge edge)
public static void removeIndex(TinkerVertex vertex, String key, Object value)
public static void removeIndex(TinkerEdge edge, String key, Object value)
public static Iterator<TinkerEdge> getEdges(TinkerVertex vertex, org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels)
public static Iterator<TinkerVertex> getVertices(TinkerVertex vertex, org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels)
public static Map<Object,org.apache.tinkerpop.gremlin.structure.Vertex> getVertices(TinkerGraph graph)
public static Map<Object,org.apache.tinkerpop.gremlin.structure.Edge> getEdges(TinkerGraph graph)
Copyright © 2013–2018 Apache Software Foundation. All rights reserved.