Click or drag to resize

Metadata Class

Keeps metadata on the connected cluster, including known nodes and schema definitions.
Inheritance Hierarchy
SystemObject
  DseMetadata

Namespace:  Dse
Assembly:  Dse (in Dse.dll) Version: 2.9.0
Syntax
C#
public class Metadata : IDisposable

The Metadata type exposes the following members.

Properties
  NameDescription
Public propertyClusterName
Returns the name of currently connected cluster.
Public propertyIsDbaas
Determines whether the cluster is provided as a service (DataStax Apollo).
Top
Methods
  NameDescription
Public methodAllHosts
Returns all known hosts of this cluster.
Public methodAllReplicas
Public methodCheckSchemaAgreementAsync
Initiates a schema agreement check.

Schema changes need to be propagated to all nodes in the cluster. Once they have settled on a common version, we say that they are in agreement.

This method does not perform retries so MaxSchemaAgreementWaitSeconds does not apply.

Public methodDispose
Releases all resources used by the Metadata
Public methodGetAggregate
Gets the definition associated with a aggregate from Cassandra
Public methodGetFunction
Gets the definition associated with a User Defined Function from Cassandra
Public methodGetHost
Public methodGetKeyspace
Returns metadata of specified keyspace.
Public methodGetKeyspaces
Returns a collection of all defined keyspaces names.
Public methodGetMaterializedView
Returns the view metadata for the provided view name in the keyspace.
Public methodGetReplicas(Byte)
Public methodGetReplicas(String, Byte)
Get the replicas for a given partition key and keyspace
Public methodGetTable
Returns TableMetadata for specified table in specified keyspace.
Public methodGetTables
Returns names of all tables which are defined within specified keyspace.
Public methodGetUdtDefinition
Gets the definition associated with a User Defined Type from Cassandra
Public methodGetUdtDefinitionAsync
Gets the definition associated with a User Defined Type from Cassandra
Public methodRefreshSchema
Updates the keyspace and token information
Public methodRefreshSchemaAsync
Updates the keyspace and token information
Public methodShutDown
Top
Events
See Also

Reference