A snapshot of the cluster’s schema metadata.

Functions

void

cass_schema_free

( schema )

Frees a schema instance.

Parameters:
Name Type Details
in schema
const CassSchemaMeta *

cass_schema_get_keyspace

( schema, keyspace )

Gets a the metadata for the provided keyspace name.

Parameters:
Name Type Details
in schema
in keyspace
Returns:
Type Details
const CassSchemaMeta *

The schema metadata for a keyspace. NULL if keyspace does not exist.

See Also:
const CassSchemaMeta *

cass_schema_get_keyspace_n

( schema, keyspace, keyspace_length )

Same as CassSchema::cass_schema_get_keyspace, but with lengths for string parameters.

Parameters:
Name Type Details
in schema
in keyspace
in keyspace_length
Returns:
Type Details
const CassSchemaMeta *

same as CassSchema::cass_schema_get_keyspace

See Also:
CassSchemaMetaType

cass_schema_meta_type

( meta )

Gets the type of the specified schema metadata.

Parameters:
Name Type Details
in meta
Returns:
Type Details
CassSchemaMetaType

The type of the schema metadata

const CassSchemaMeta *

cass_schema_meta_get_entry_n

( meta, name, name_length )

Same as CassSchemaMeta::cass_schema_meta_get_entry, but with lengths for string parameters.

Parameters:
Name Type Details
in meta
in name
in name_length
Returns:
Type Details
const CassSchemaMeta *

same as CassSchemaMeta::cass_schema_meta_get_entry

See Also:
const CassSchemaMetaField *

cass_schema_meta_get_field_n

( meta, name, name_length )

Same as CassSchemaMeta::cass_schema_meta_get_field, but with lengths for string parameters.

Parameters:
Name Type Details
in meta
in name
in name_length
Returns:
Type Details
const CassSchemaMetaField *

same as CassSchemaMeta::cass_schema_meta_get_field

See Also:
CassIterator *

cass_iterator_from_schema

( schema )

Creates a new iterator for the specified schema. This can be used to iterate over keyspace entries.

Parameters:
Name Type Details
in schema
Returns:
Type Details
CassIterator *

A new iterator that must be freed.

See Also: