Class: Dse::Graph::ExecutionProfile
- Inherits:
-
Cassandra::Execution::Profile
- Object
- Cassandra::Execution::Profile
- Dse::Graph::ExecutionProfile
- Extended by:
- Forwardable
- Defined in:
- lib/dse/graph/execution_profile.rb,
lib/dse/graph/execution_profile.rb
Overview
Execution profile class that adds graph option support
Instance Attribute Summary collapse
-
#graph_language ⇒ String
Language used in the graph statement (default "gremlin-groovy").
-
#graph_name ⇒ String
Name of the targeted graph; required unless the statement is a system query.
-
#graph_read_consistency ⇒ Cassandra::CONSISTENCIES
Read consistency level for graph statement.
-
#graph_source ⇒ String
Graph traversal source (default "g").
-
#graph_write_consistency ⇒ Cassandra::CONSISTENCIES
Write consistency level for graph statement.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ExecutionProfile
constructor
Creates a ExecutionProfile instance, which extends Cassandra::Execution::Profile.
Constructor Details
#initialize(options = {}) ⇒ ExecutionProfile
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.
53 54 55 56 57 |
# File 'lib/dse/graph/execution_profile.rb', line 53 def initialize( = {}) [:timeout] = 30 unless [:timeout] super() @graph_options = Dse::Graph::Options.new() end |
Instance Attribute Details
#graph_language ⇒ String
Returns language used in the graph statement (default "gremlin-groovy").
8 9 10 |
# File 'lib/dse/graph/execution_profile.rb', line 8 def graph_language @graph_language end |
#graph_name ⇒ String
Returns name of the targeted graph; required unless the statement is a system query.
4 5 6 |
# File 'lib/dse/graph/execution_profile.rb', line 4 def graph_name @graph_name end |
#graph_read_consistency ⇒ Cassandra::CONSISTENCIES
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.
12 13 14 |
# File 'lib/dse/graph/execution_profile.rb', line 12 def graph_read_consistency @graph_read_consistency end |
#graph_source ⇒ String
Returns graph traversal source (default "g").
6 7 8 |
# File 'lib/dse/graph/execution_profile.rb', line 6 def graph_source @graph_source end |
#graph_write_consistency ⇒ Cassandra::CONSISTENCIES
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.
16 17 18 |
# File 'lib/dse/graph/execution_profile.rb', line 16 def graph_write_consistency @graph_write_consistency end |