public class RedisGraph extends AbstractRedisGraph implements RedisGraphContextGenerator
Constructor and Description |
---|
RedisGraph()
Creates a client running on the local machine
|
RedisGraph(redis.clients.jedis.util.Pool<redis.clients.jedis.Jedis> jedis)
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.
|
callProcedure, callProcedure, callProcedure, query, query, query
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
callProcedure, callProcedure, callProcedure, query, query, query
public RedisGraph()
public RedisGraph(String host, int port)
host
- Redis hostport
- Redis portpublic RedisGraph(redis.clients.jedis.util.Pool<redis.clients.jedis.Jedis> jedis)
jedis
- bring your own Jedis poolprotected 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 querypublic 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 © 2020 RedisLabs. All rights reserved.