public class CypherTraversalSource extends GraphTraversalSource
TraversalSource implementation that spawns CypherTraversalSource instances.
CypherTraversalSource has cypher(String) step that allows to start traversal with Cypher query (which will be
translated to Gremlin) then continue with other Gremlin stepsGraphTraversalSource.Symbolsbytecode, connection, graph, strategies| Constructor and Description |
|---|
CypherTraversalSource(Graph graph) |
CypherTraversalSource(Graph graph,
TraversalStrategies traversalStrategies) |
CypherTraversalSource(RemoteConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
GraphTraversal<Map<String,Object>,Map<String,Object>> |
cypher(String cypher)
Translate Cypher query to Gremlin and get the result set as a
GraphTraversal. |
GraphTraversal<Map<String,Object>,Map<String,Object>> |
cypher(String cypher,
Map<String,Object> params)
Translate Cypher query with provided parameters and get the result set as a
GraphTraversal. |
GraphTraversal<Map<String,Object>,Map<String,Object>> |
cypher(String cypher,
Map<String,Object> params,
String flavor)
Translate Cypher query to Gremlin with flavor and provided parameters and get the result set as a
GraphTraversal. |
GraphTraversal<Map<String,Object>,Map<String,Object>> |
cypher(String cypher,
String flavor)
Translate Cypher query to Gremlin with flavor and get the result set as a
GraphTraversal. |
CypherTraversalSource |
withRemote(org.apache.commons.configuration.Configuration conf) |
CypherTraversalSource |
withRemote(RemoteConnection connection) |
CypherTraversalSource |
withRemote(String configFile) |
addE, addE, addV, addV, addV, clone, close, E, getAnonymousTraversalClass, getBytecode, getGraph, getStrategies, inject, io, toString, tx, V, with, with, withBulk, withComputer, withComputer, withComputer, withoutStrategies, withPath, withSack, withSack, withSack, withSack, withSack, withSack, withSack, withSack, withSideEffect, withSideEffect, withSideEffect, withSideEffect, withStrategiespublic CypherTraversalSource(Graph graph, TraversalStrategies traversalStrategies)
public CypherTraversalSource(Graph graph)
public CypherTraversalSource(RemoteConnection connection)
public GraphTraversal<Map<String,Object>,Map<String,Object>> cypher(String cypher)
GraphTraversal.cypher - the Cypher query to executepublic GraphTraversal<Map<String,Object>,Map<String,Object>> cypher(String cypher, String flavor)
GraphTraversal.cypher - the Cypher query to executeflavor - flavor of translationTranslator.FlavorBuilder#build(java.lang.String)public GraphTraversal<Map<String,Object>,Map<String,Object>> cypher(String cypher, Map<String,Object> params)
GraphTraversal.cypher - the Cypher query to executeparams - the parameters of the Cypher querypublic GraphTraversal<Map<String,Object>,Map<String,Object>> cypher(String cypher, Map<String,Object> params, String flavor)
GraphTraversal.cypher - the Cypher query to executeparams - the parameters of the Cypher queryflavor - flavor of translation*public CypherTraversalSource withRemote(org.apache.commons.configuration.Configuration conf)
withRemote in interface TraversalSourcewithRemote in class GraphTraversalSourcepublic CypherTraversalSource withRemote(String configFile) throws Exception
withRemote in interface TraversalSourcewithRemote in class GraphTraversalSourceExceptionpublic CypherTraversalSource withRemote(RemoteConnection connection)
withRemote in interface TraversalSourcewithRemote in class GraphTraversalSource