Class KeyspaceMetadata
Inherited Members
Namespace: Cassandra
Assembly: Cassandra.dll
Syntax
public class KeyspaceMetadata
Properties
DurableWrites
Gets a value indicating whether durable writes are set on this keyspace.
Declaration
public bool DurableWrites { get; }
Property Value
Type | Description |
---|---|
bool |
|
GraphEngine
Returns the graph engine associated with this keyspace. Returns null if there isn't one.
Declaration
public string GraphEngine { get; }
Property Value
Type | Description |
---|---|
string |
IsVirtual
Determines whether the keyspace is a virtual keyspace or not.
Declaration
public bool IsVirtual { get; }
Property Value
Type | Description |
---|---|
bool |
Name
Gets the name of this keyspace.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string | the name of this CQL keyspace. |
Replication
Returns the replication options for this keyspace.
Declaration
public IDictionary<string, int> Replication { get; }
Property Value
Type | Description |
---|---|
IDictionary<string, int> | a dictionary containing the keyspace replication strategy options. |
StrategyClass
Gets the Strategy Class of this keyspace.
Declaration
public string StrategyClass { get; }
Property Value
Type | Description |
---|---|
string | name of StrategyClass of this keyspace. |
Methods
AsCqlQuery()
Returns a CQL query representing this keyspace. This method returns a single 'CREATE KEYSPACE' query with the options corresponding to this name definition.
Declaration
public string AsCqlQuery()
Returns
Type | Description |
---|---|
string | the 'CREATE KEYSPACE' query corresponding to this name. |
ExportAsString()
Deprecated. Please use AsCqlQuery().
Returns a CQL query representing this keyspace. This method returns a single 'CREATE KEYSPACE' query with the options corresponding to this name definition.
Declaration
public string ExportAsString()
Returns
Type | Description |
---|---|
string | the 'CREATE KEYSPACE' query corresponding to this name. |
GetAggregate(string, string[])
Gets a CQL aggregate by name and signature
Declaration
public AggregateMetadata GetAggregate(string aggregateName, string[] signature)
Parameters
Type | Name | Description |
---|---|---|
string | aggregateName | |
string[] | signature |
Returns
Type | Description |
---|---|
AggregateMetadata | The aggregate metadata or null if not found. |
GetFunction(string, string[])
Gets a CQL function by name and signature
Declaration
public FunctionMetadata GetFunction(string functionName, string[] signature)
Parameters
Type | Name | Description |
---|---|---|
string | functionName | |
string[] | signature |
Returns
Type | Description |
---|---|
FunctionMetadata | The function metadata or null if not found. |
GetMaterializedViewMetadata(string)
Returns metadata of specified view in this keyspace.
Declaration
public MaterializedViewMetadata GetMaterializedViewMetadata(string viewName)
Parameters
Type | Name | Description |
---|---|---|
string | viewName | the name of view to retrieve |
Returns
Type | Description |
---|---|
MaterializedViewMetadata | the metadata for view |
GetTableMetadata(string)
Returns metadata of specified table in this keyspace.
Declaration
public TableMetadata GetTableMetadata(string tableName)
Parameters
Type | Name | Description |
---|---|---|
string | tableName | the name of table to retrieve |
Returns
Type | Description |
---|---|
TableMetadata | the metadata for table |
GetTablesMetadata()
Returns metadata of all tables defined in this keyspace.
Declaration
public IEnumerable<TableMetadata> GetTablesMetadata()
Returns
Type | Description |
---|---|
IEnumerable<TableMetadata> | an IEnumerable of TableMetadata for the tables defined in this keyspace. |
GetTablesNames()
Returns names of all tables defined in this keyspace.
Declaration
public ICollection<string> GetTablesNames()
Returns
Type | Description |
---|---|
ICollection<string> | a collection of all, defined in this keyspace tables names. |