Menu

CassMaterializedViewMeta

struct CassMaterializedViewMeta

MaterializedView metadata

Requires Apache Cassandra: 3.0+

Public Functions

const CassColumnMeta *cass_materialized_view_meta_column_by_name(const CassMaterializedViewMeta *view_meta, const char *column)

Gets the column metadata for the provided column name.

Requires Apache Cassandra: 3.0+

Return

The metadata for a column. NULL if column does not exist.

Parameters
  • view_meta:

  • column:

const CassColumnMeta *cass_materialized_view_meta_column_by_name_n(const CassMaterializedViewMeta *view_meta, const char *column, size_t column_length)

Same as cass_materialized_view_meta_column_by_name(), but with lengths for string parameters.

Requires Apache Cassandra: 3.0+

Return

same as cass_materialized_view_meta_column_by_name()

See

cass_materialized_view_meta_column_by_name()

Parameters
  • view_meta:

  • column:

  • column_length:

void cass_materialized_view_meta_name(const CassMaterializedViewMeta *view_meta, const char **name, size_t *name_length)

Gets the name of the view.

Requires Apache Cassandra: 3.0+

Parameters
  • view_meta:

  • name:

  • name_length:

const CassTableMeta *cass_materialized_view_meta_base_table(const CassMaterializedViewMeta *view_meta)

Gets the base table of the view.

Requires Apache Cassandra: 3.0+

Return

The base table for the view.

Parameters
  • view_meta:

size_t cass_materialized_view_meta_column_count(const CassMaterializedViewMeta *view_meta)

Gets the total number of columns for the view.

Requires Apache Cassandra: 3.0+

Return

The total column count.

Parameters
  • view_meta:

const CassColumnMeta *cass_materialized_view_meta_column(const CassMaterializedViewMeta *view_meta, size_t index)

Gets the column metadata for the provided index.

Requires Apache Cassandra: 3.0+

Return

The metadata for a column. NULL returned if the index is out of range.

Parameters
  • view_meta:

  • index:

size_t cass_materialized_view_meta_partition_key_count(const CassMaterializedViewMeta *view_meta)

Gets the number of columns for the view’s partition key.

Requires Apache Cassandra: 3.0+

Return

The count for the number of columns in the partition key.

Parameters
  • view_meta:

const CassColumnMeta *cass_materialized_view_meta_partition_key(const CassMaterializedViewMeta *view_meta, size_t index)

Gets the partition key column metadata for the provided index.

Requires Apache Cassandra: 3.0+

Return

The metadata for a column. NULL returned if the index is out of range.

Parameters
  • view_meta:

  • index:

size_t cass_materialized_view_meta_clustering_key_count(const CassMaterializedViewMeta *view_meta)

Gets the number of columns for the view’s clustering key.

Requires Apache Cassandra: 3.0+

Return

The count for the number of columns in the clustering key.

Parameters
  • view_meta:

const CassColumnMeta *cass_materialized_view_meta_clustering_key(const CassMaterializedViewMeta *view_meta, size_t index)

Gets the clustering key column metadata for the provided index.

Requires Apache Cassandra: 3.0+

Return

The metadata for a column. NULL returned if the index is out of range.

Parameters
  • view_meta:

  • index:

CassClusteringOrder cass_materialized_view_meta_clustering_key_order(const CassMaterializedViewMeta *view_meta, size_t index)

Gets the clustering order column metadata for the provided index.

Return

The clustering order for a column. CASS_CLUSTERING_ORDER_NONE returned if the index is out of range.

See

cass_materialized_view_meta_clustering_key_count()

Parameters
  • view_meta:

  • index:

const CassValue *cass_materialized_view_meta_field_by_name(const CassMaterializedViewMeta *view_meta, const char *name)

Gets a metadata field for the provided name. Metadata fields allow direct access to the column data found in the underlying “views” metadata view.

Requires Apache Cassandra: 3.0+

Return

A metadata field value. NULL if the field does not exist.

Parameters
  • view_meta:

  • name:

const CassValue *cass_materialized_view_meta_field_by_name_n(const CassMaterializedViewMeta *view_meta, const char *name, size_t name_length)

Same as cass_materialized_view_meta_field_by_name(), but with lengths for string parameters.

Requires Apache Cassandra: 3.0+

Return

same as cass_materialized_view_meta_field_by_name()

See

cass_materialized_view_meta_field_by_name()

Parameters
  • view_meta:

  • name:

  • name_length:

CassIterator *cass_iterator_columns_from_materialized_view_meta(const CassMaterializedViewMeta *view_meta)

Creates a new iterator for the specified materialized view metadata. This can be used to iterate over columns.

Requires Apache Cassandra: 3.0+

Return

A new iterator that must be freed.

See

cass_iterator_get_column_meta()

See

cass_iterator_free()

Parameters
  • view_meta:

CassIterator *cass_iterator_fields_from_materialized_view_meta(const CassMaterializedViewMeta *view_meta)

Creates a new fields iterator for the specified materialized view metadata. Metadata fields allow direct access to the column data found in the underlying “views” metadata view. This can be used to iterate those metadata field entries.

Requires Apache Cassandra: 3.0+

Return

A new iterator that must be freed.

See

cass_iterator_get_meta_field_name()

See

cass_iterator_get_meta_field_value()

See

cass_iterator_free()

Parameters
  • view_meta: