Class BlockingGraphCommandsImpl<K>
java.lang.Object
io.quarkus.redis.runtime.datasource.AbstractRedisCommandGroup
io.quarkus.redis.runtime.datasource.BlockingGraphCommandsImpl<K>
- All Implemented Interfaces:
GraphCommands<K>,RedisCommands
public class BlockingGraphCommandsImpl<K>
extends AbstractRedisCommandGroup
implements GraphCommands<K>
-
Field Summary
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommandGroup
ds, timeout -
Constructor Summary
ConstructorsConstructorDescriptionBlockingGraphCommandsImpl(RedisDataSource ds, ReactiveGraphCommands<K> reactive, Duration timeout) -
Method Summary
Modifier and TypeMethodDescriptionvoidgraphDelete(K key) Execute the command GRAPH.DELETE.graphExplain(K key, String query) Execute the command GRAPH.EXPLAIN.Execute the command GRAPH.LIST.graphQuery(K key, String query) Execute the command GRAPH.QUERY.graphQuery(K key, String query, Duration timeout) Execute the command GRAPH.QUERY.Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommandGroup
getDataSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.redis.datasource.RedisCommands
getDataSource
-
Constructor Details
-
BlockingGraphCommandsImpl
public BlockingGraphCommandsImpl(RedisDataSource ds, ReactiveGraphCommands<K> reactive, Duration timeout)
-
-
Method Details
-
graphDelete
Description copied from interface:GraphCommandsExecute the command GRAPH.DELETE. Summary: Completely removes the graph and all of its entities. Group: graph- Specified by:
graphDeletein interfaceGraphCommands<K>- Parameters:
key- the key, must not benull
-
graphExplain
Description copied from interface:GraphCommandsExecute the command GRAPH.EXPLAIN. Summary: Constructs a query execution plan but does not run it. Inspect this execution plan to better understand how your query will get executed. Group: graph- Specified by:
graphExplainin interfaceGraphCommands<K>- Parameters:
key- the key, must not benullquery- the query, must not benull- Returns:
- the string representation of the query execution plan
-
graphList
Description copied from interface:GraphCommandsExecute the command GRAPH.LIST. Summary: Lists all graph keys in the keyspace. Group: graph- Specified by:
graphListin interfaceGraphCommands<K>- Returns:
- the list of list of keys storing graphs
-
graphQuery
Description copied from interface:GraphCommandsExecute the command GRAPH.QUERY. Summary: Executes the given query against a specified graph. Group: graph- Specified by:
graphQueryin interfaceGraphCommands<K>- Parameters:
key- the key, must not benullquery- the query, must not benull- Returns:
- a map, potentially empty, containing the requested items to return. The map is empty if
the query does not have a
returnclause. For each request item, aGraphQueryResponseItemis returned. It can represent a scalar item (GraphQueryResponseItem.ScalarItem), a node (GraphQueryResponseItem.NodeItem, or a relation (GraphQueryResponseItem.RelationItem).
-
graphQuery
Description copied from interface:GraphCommandsExecute the command GRAPH.QUERY. Summary: Executes the given query against a specified graph. Group: graph- Specified by:
graphQueryin interfaceGraphCommands<K>- Parameters:
key- the key, must not benullquery- the query, must not benulltimeout- a timeout, must not benull- Returns:
- a map, potentially empty, containing the requested items to return. The map is empty if
the query does not have a
returnclause. For each request item, aGraphQueryResponseItemis returned. It can represent a scalar item (GraphQueryResponseItem.ScalarItem), a node (GraphQueryResponseItem.NodeItem, or a relation (GraphQueryResponseItem.RelationItem).
-