Execution profile class that adds graph option support

Inherits

Cassandra::Execution::Profile

Extends

  • Forwardable

Methods

self.

new

(options = {})

Creates a Dse::Graph::ExecutionProfile instance, which extends Cassandra::Execution::Profile. It takes all of the same options as the Cassandra::Execution::Profile constructor and the following extra options.

Parameters:
Name Type Details
options Hash (defaults to: {}) a customizable set of options
Keys for options:
Key Type Details
:graph_name String name of graph to use in graph statements
:graph_source String graph traversal source
:graph_language String language used in graph queries
:graph_read_consistency Cassandra::CONSISTENCIES read consistency level for graph statements. Overrides the standard statement consistency level
:graph_write_consistency Cassandra::CONSISTENCIES write consistency level for graph statements. Overrides the standard statement consistency level

graph_name

read or write

Returns name of the targeted graph; required unless the statement is a system query.

Returns:
Type Details
String name of the targeted graph; required unless the statement is a system query.

graph_source

read or write

Returns graph traversal source (default “g”)

Returns:
Type Details
String graph traversal source (default “g”)

graph_language

read or write

Returns language used in the graph statement (default “gremlin-groovy”)

Returns:
Type Details
String language used in the graph statement (default “gremlin-groovy”)

graph_read_consistency

read or write

Returns read consistency level for graph statement. Overrides the standard statement consistency level. Defaults to ONE in the server, but the default may be configured differently.

Returns:
Type Details
Cassandra::CONSISTENCIES read consistency level for graph statement. Overrides the standard statement consistency level. Defaults to ONE in the server, but the default may be configured differently.

graph_write_consistency

read or write

Returns write consistency level for graph statement. Overrides the standard statement consistency level. Defaults to QUORUM in the server, but the default may be configured differently.

Returns:
Type Details
Cassandra::CONSISTENCIES write consistency level for graph statement. Overrides the standard statement consistency level. Defaults to QUORUM in the server, but the default may be configured differently.