public abstract class AbstractRedisGraph extends Object implements RedisGraph
Constructor and Description |
---|
AbstractRedisGraph() |
Modifier and Type | Method and Description |
---|---|
ResultSet |
callProcedure(String graphId,
String procedure)
Invokes stored procedures without arguments
|
ResultSet |
callProcedure(String graphId,
String procedure,
List<String> args)
Invokes stored procedure with arguments
|
ResultSet |
callProcedure(String graphId,
String procedure,
List<String> args,
Map<String,List<String>> kwargs)
Invoke a stored procedure
|
protected abstract redis.clients.jedis.Jedis |
getConnection()
Inherited classes should return a Jedis connection, with respect to their context
|
ResultSet |
query(String graphId,
String query)
Execute a Cypher query.
|
ResultSet |
query(String graphId,
String query,
Map<String,Object> params)
Executes a cypher query with parameters.
|
ResultSet |
query(String graphId,
String query,
Object... args)
Deprecated.
use
query(String, String, Map) instead. |
protected abstract ResultSet |
sendQuery(String graphId,
String preparedQuery)
Sends a query to the redis graph.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, deleteGraph
protected abstract redis.clients.jedis.Jedis getConnection()
protected abstract ResultSet sendQuery(String graphId, String preparedQuery)
graphId
- graph to be queriedpreparedQuery
- prepared querypublic ResultSet query(String graphId, String query)
query
in interface RedisGraph
graphId
- a graph to perform the query onquery
- Cypher query@Deprecated public ResultSet query(String graphId, String query, Object... args)
query(String, String, Map)
instead.query
in interface RedisGraph
graphId
- a graph to perform the query onquery
- Cypher queryargs
- public ResultSet query(String graphId, String query, Map<String,Object> params)
query
in interface RedisGraph
graphId
- a graph to perform the query on.query
- Cypher query.params
- parameters map.public ResultSet callProcedure(String graphId, String procedure)
RedisGraph
callProcedure
in interface RedisGraph
graphId
- a graph to perform the query onprocedure
- procedure name to invokepublic ResultSet callProcedure(String graphId, String procedure, List<String> args)
RedisGraph
callProcedure
in interface RedisGraph
graphId
- a graph to perform the query onprocedure
- procedure name to invokeargs
- procedure argumentspublic ResultSet callProcedure(String graphId, String procedure, List<String> args, Map<String,List<String>> kwargs)
RedisGraph
callProcedure
in interface RedisGraph
graphId
- a graph to perform the query onprocedure
- - procedure to executeargs
- - procedure argumentskwargs
- - procedure output argumentsCopyright © 2020 RedisLabs. All rights reserved.