Package com.redislabs.redisgraph
Interface RedisGraph
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
RedisGraphContext,RedisGraphContextGenerator
- All Known Implementing Classes:
AbstractRedisGraph,ContextedRedisGraph,RedisGraph
public interface RedisGraph extends Closeable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ResultSetcallProcedure(String graphId, String procedure)Invokes stored procedures without argumentsResultSetcallProcedure(String graphId, String procedure, List<String> args)Invokes stored procedure with argumentsResultSetcallProcedure(String graphId, String procedure, List<String> args, Map<String,List<String>> kwargs)Invoke a stored procedurevoidclose()StringdeleteGraph(String graphId)Deletes the entire graphResultSetquery(String graphId, String query)Execute a Cypher query.ResultSetquery(String graphId, String query, Object... args)Deprecated.usequery(String, String, Map)instead.ResultSetquery(String graphId, String query, Map<String,Object> params)Executes a cypher query with parameters.
-
-
-
Method Detail
-
query
ResultSet query(String graphId, String query)
Execute a Cypher query.- Parameters:
graphId- a graph to perform the query onquery- Cypher query- Returns:
- a result set
-
query
@Deprecated ResultSet query(String graphId, String query, Object... args)
Deprecated.usequery(String, String, Map)instead.Execute a Cypher query with arguments- Parameters:
graphId- a graph to perform the query onquery- Cypher queryargs-- Returns:
- a result set
-
query
ResultSet query(String graphId, String query, Map<String,Object> params)
Executes a cypher query with parameters.- Parameters:
graphId- a graph to perform the query on.query- Cypher query.params- parameters map.- Returns:
- a result set.
-
callProcedure
ResultSet callProcedure(String graphId, String procedure)
Invokes stored procedures without arguments- Parameters:
graphId- a graph to perform the query onprocedure- procedure name to invoke- Returns:
- result set with the procedure data
-
callProcedure
ResultSet callProcedure(String graphId, String procedure, List<String> args)
Invokes stored procedure with arguments- Parameters:
graphId- a graph to perform the query onprocedure- procedure name to invokeargs- procedure arguments- Returns:
- result set with the procedure data
-
callProcedure
ResultSet callProcedure(String graphId, String procedure, List<String> args, Map<String,List<String>> kwargs)
Invoke a stored procedure- Parameters:
graphId- a graph to perform the query onprocedure- - procedure to executeargs- - procedure argumentskwargs- - procedure output arguments- Returns:
- result set with the procedure data
-
deleteGraph
String deleteGraph(String graphId)
Deletes the entire graph- Parameters:
graphId- graph to delete- Returns:
- delete running time statistics
-
close
void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-