public class ContextedRedisGraph extends AbstractRedisGraph implements RedisGraphContext, RedisGraphCacheHolder
Constructor and Description |
---|
ContextedRedisGraph(redis.clients.jedis.Jedis connectionContext)
Generates a new instance with a specific Jedis connection
|
Modifier and Type | Method and Description |
---|---|
void |
close()
closes the Jedis connection
|
String |
deleteGraph(String graphId)
Deletes the entire graph
|
protected redis.clients.jedis.Jedis |
getConnection()
Overrides the abstract method.
|
redis.clients.jedis.Jedis |
getConnectionContext()
Returns implementing class connection context
|
RedisGraphTransaction |
multi()
Creates a new RedisGraphTransaction transactional object
|
protected ResultSet |
sendQuery(String graphId,
String preparedQuery)
Sends the query over the instance only connection
|
void |
setRedisGraphCaches(RedisGraphCaches caches) |
String |
unwatch()
Removes watch from all keys
|
String |
watch(String... keys)
Perfrom watch over given Redis keys
|
callProcedure, callProcedure, callProcedure, query, query, query
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
callProcedure, callProcedure, callProcedure, query, query, query
public ContextedRedisGraph(redis.clients.jedis.Jedis connectionContext)
connectionContext
- 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 querypublic redis.clients.jedis.Jedis getConnectionContext()
RedisGraphContext
getConnectionContext
in interface RedisGraphContext
public RedisGraphTransaction multi()
multi
in interface RedisGraphContext
public String watch(String... keys)
watch
in interface RedisGraphContext
keys
- public String unwatch()
unwatch
in interface RedisGraphContext
public String deleteGraph(String graphId)
deleteGraph
in interface RedisGraph
graphId
- graph to deletepublic void close()
close
in interface RedisGraph
close
in interface Closeable
close
in interface AutoCloseable
public void setRedisGraphCaches(RedisGraphCaches caches)
setRedisGraphCaches
in interface RedisGraphCacheHolder
Copyright © 2020 RedisLabs. All rights reserved.