public class RedisGraph extends AbstractRedisGraph implements RedisGraphContextGenerator
Constructor and Description |
---|
RedisGraph()
Creates a client running on the local machine
|
RedisGraph(redis.clients.jedis.Jedis jedis) |
RedisGraph(redis.clients.jedis.util.Pool<redis.clients.jedis.Jedis> pool)
Creates a client using provided Jedis pool
|
RedisGraph(String host,
int port)
Creates a client running on the specific host/post
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the Jedis pool
|
String |
deleteGraph(String graphId)
Deletes the entire graph
|
protected redis.clients.jedis.Jedis |
getConnection()
Overrides the abstract function.
|
RedisGraphContext |
getContext()
Returns a new ContextedRedisGraph bounded to a Jedis connection from the Jedis pool
|
protected ResultSet |
sendQuery(String graphId,
String preparedQuery)
Overrides the abstract function.
|
protected ResultSet |
sendQuery(String graphId,
String preparedQuery,
long timeout)
Overrides the abstract function.
|
protected ResultSet |
sendReadOnlyQuery(String graphId,
String preparedQuery)
Overrides the abstract function.
|
protected ResultSet |
sendReadOnlyQuery(String graphId,
String preparedQuery,
long timeout)
Overrides the abstract function.
|
callProcedure, callProcedure, callProcedure, query, query, query, query, query, readOnlyQuery, readOnlyQuery, readOnlyQuery, readOnlyQuery
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
callProcedure, callProcedure, callProcedure, query, query, query, query, query, readOnlyQuery, readOnlyQuery, readOnlyQuery, readOnlyQuery, with
public RedisGraph()
public RedisGraph(String host, int port)
host
- Redis hostport
- Redis portpublic RedisGraph(redis.clients.jedis.util.Pool<redis.clients.jedis.Jedis> pool)
pool
- bring your own Jedis poolpublic RedisGraph(redis.clients.jedis.Jedis jedis)
protected redis.clients.jedis.Jedis getConnection()
getConnection
in class AbstractRedisGraph
protected ResultSet sendQuery(String graphId, String preparedQuery)
sendQuery
in class AbstractRedisGraph
graphId
- graph to be queriedpreparedQuery
- prepared queryprotected ResultSet sendReadOnlyQuery(String graphId, String preparedQuery)
sendReadOnlyQuery
in class AbstractRedisGraph
graphId
- graph to be queriedpreparedQuery
- prepared queryprotected ResultSet sendQuery(String graphId, String preparedQuery, long timeout)
sendQuery
in class AbstractRedisGraph
graphId
- graph to be queriedpreparedQuery
- prepared querytimeout
- protected ResultSet sendReadOnlyQuery(String graphId, String preparedQuery, long timeout)
sendReadOnlyQuery
in class AbstractRedisGraph
graphId
- graph to be queriedpreparedQuery
- prepared querytimeout
- public void close()
close
in interface RedisGraph
close
in interface Closeable
close
in interface AutoCloseable
public String deleteGraph(String graphId)
deleteGraph
in interface RedisGraph
graphId
- graph to deletepublic RedisGraphContext getContext()
getContext
in interface RedisGraphContextGenerator
Copyright © 2022 RedisLabs. All rights reserved.