Encapsulates a graph statement, parameters, options, and idempotency. This is primarily useful for re-issuing the same statement multiple times the same way.

Inherits

Object

Extends

  • Forwardable

Includes

  • Cassandra::Statement

Methods

self.

new

(statement, parameters = nil, options = nil, idempotent = false)

Returns a new instance of Statement

Parameters:
Name Type Details
statement String graph statement
parameters Hash<String, String> (defaults to: nil) (nil) parameters to the statement
options Hash (defaults to: nil) (nil) graph options
idempotent Boolean (defaults to: false) (false) whether or not the statement is idempotent

graph_name

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

Returns graph traversal source (default “g”)

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

graph_language

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

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

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.

statement

Returns graph statement string

Returns:
Type Details
String graph statement string

parameters

Returns parameters to the statement

Returns:
Type Details
Hash<String, String> parameters to the statement