Cluster represents a DSE cluster. It serves as a session factory and a collection of metadata. It wraps a Cassandra::Cluster and exposes all of its functionality.

Inherits

Object

Methods

graph_options

Returns default graph options used by queries on this cluster.

Returns:
Type Details
Dse::Graph::Options default graph options used by queries on this cluster.

connect_async

(keyspace = nil)

Delegates to Cassandra::Cluster#connect_async to connect asynchronously to a cluster, but returns a future that will resolve to a DSE session rather than Cassandra session.

Parameters:
Name Type Details
keyspace String (defaults to: nil) optional keyspace to scope session to
Returns:
Type Details
Cassandra::Future<Dse::Session>

connect

(keyspace = nil)

Synchronous variant of #connect_async.

Parameters:
Name Type Details
keyspace String (defaults to: nil) optional keyspace to scope the session to
Returns:
Type Details
Dse::Session