Functions retrieving meta-information from a Cassandra connection

Share:

Description

RC.cluster.name returns the name of the cluster.

RC.version returns the protocol version.

RC.describe.keyspace returns a keyspace definition.

RC.describe.keyspaces returns a list of definitions for all keyspaces.

Usage

1
2
3
4

Arguments

conn

connection handle are returned by RC.connect

keyspace

string, name of the keyspace to describe

Value

For RC.cluster.name and RC.version a string.

For RC.describe.keyspace a structure describing the keyspace - see KsDef structure in Cassandra.

For RC.describe.keyspaces a list of the KsDef strctures.

Author(s)

Simon Urbanek

See Also

RC.connect, RC.get