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
|
RedisGraphPipeline |
pipelined()
Creates a new RedisGraphPipeline pipeline object
|
protected ResultSet |
sendQuery(String graphId,
String preparedQuery)
Sends the query over the instance only connection
|
protected ResultSet |
sendQuery(String graphId,
String preparedQuery,
long timeout)
Sends the query over the instance only connection
|
protected ResultSet |
sendReadOnlyQuery(String graphId,
String preparedQuery)
Sends the read-only query over the instance only connection
|
protected ResultSet |
sendReadOnlyQuery(String graphId,
String preparedQuery,
long timeout)
Sends the read-only 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, 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 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 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 queriedtimeout
- preparedQuery
- prepared queryprotected ResultSet sendReadOnlyQuery(String graphId, String preparedQuery, long timeout)
sendReadOnlyQuery
in class AbstractRedisGraph
graphId
- graph to be queriedtimeout
- preparedQuery
- prepared querypublic redis.clients.jedis.Jedis getConnectionContext()
RedisGraphContext
getConnectionContext
in interface RedisGraphContext
public RedisGraphTransaction multi()
multi
in interface RedisGraphContext
public RedisGraphPipeline pipelined()
pipelined
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 © 2022 RedisLabs. All rights reserved.