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,
long timeout)
Execute a Cypher query with timeout.
|
ResultSet |
query(String graphId,
String query,
Map<String,Object> params)
Executes a cypher query with parameters.
|
ResultSet |
query(String graphId,
String query,
Map<String,Object> params,
long timeout)
Executes a cypher query with parameters and timeout.
|
ResultSet |
query(String graphId,
String query,
Object... args)
Deprecated.
use
query(String, String, Map) instead. |
ResultSet |
readOnlyQuery(String graphId,
String query)
Execute a Cypher read-only query.
|
ResultSet |
readOnlyQuery(String graphId,
String query,
long timeout)
Execute a Cypher read-only query with timeout.
|
ResultSet |
readOnlyQuery(String graphId,
String query,
Map<String,Object> params)
Executes a cypher read-only query with parameters.
|
ResultSet |
readOnlyQuery(String graphId,
String query,
Map<String,Object> params,
long timeout)
Executes a cypher read-only query with parameters and timeout.
|
protected abstract ResultSet |
sendQuery(String graphId,
String preparedQuery)
Sends a query to the redis graph.
|
protected abstract ResultSet |
sendQuery(String graphId,
String preparedQuery,
long timeout)
Sends a query to the redis graph.Implementation and context dependent
|
protected abstract ResultSet |
sendReadOnlyQuery(String graphId,
String preparedQuery)
Sends a read-only query to the redis graph.
|
protected abstract ResultSet |
sendReadOnlyQuery(String graphId,
String preparedQuery,
long timeout)
Sends a read-query to the redis graph.Implementation and context dependent
|
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 queryprotected abstract ResultSet sendReadOnlyQuery(String graphId, String preparedQuery)
graphId
- graph to be queriedpreparedQuery
- prepared queryprotected abstract ResultSet sendQuery(String graphId, String preparedQuery, long timeout)
graphId
- graph to be queriedpreparedQuery
- prepared querytimeout
- protected abstract ResultSet sendReadOnlyQuery(String graphId, String preparedQuery, long timeout)
graphId
- graph to be queriedpreparedQuery
- prepared querytimeout
- public ResultSet query(String graphId, String query)
query
in interface RedisGraph
graphId
- a graph to perform the query onquery
- Cypher querypublic ResultSet readOnlyQuery(String graphId, String query)
readOnlyQuery
in interface RedisGraph
graphId
- a graph to perform the query onquery
- Cypher querypublic ResultSet query(String graphId, String query, long timeout)
query
in interface RedisGraph
graphId
- a graph to perform the query ontimeout
- query
- Cypher querypublic ResultSet readOnlyQuery(String graphId, String query, long timeout)
readOnlyQuery
in interface RedisGraph
graphId
- a graph to perform the query ontimeout
- query
- 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 readOnlyQuery(String graphId, String query, Map<String,Object> params)
readOnlyQuery
in interface RedisGraph
graphId
- a graph to perform the query on.query
- Cypher query.params
- parameters map.public ResultSet query(String graphId, String query, Map<String,Object> params, long timeout)
query
in interface RedisGraph
graphId
- a graph to perform the query on.timeout
- query
- Cypher query.params
- parameters map.public ResultSet readOnlyQuery(String graphId, String query, Map<String,Object> params, long timeout)
readOnlyQuery
in interface RedisGraph
graphId
- a graph to perform the query on.timeout
- 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 © 2021 RedisLabs. All rights reserved.