struct CassCollection
A collection of values.
Functions
CassCollection *
cass_collection_new
( type, item_count )Creates a new collection.
CassCollection *
cass_collection_new_from_data_type
( data_type, item_count )Creates a new collection from an existing data type.
void
cass_collection_free
( collection )Frees a collection instance.
CassError
cass_collection_append_int8
( collection, value )Appends a “tinyint” to the collection.
Requires Cassandra: 2.2+
CassError
cass_collection_append_int16
( collection, value )Appends an “smallint” to the collection.
Requires Cassandra: 2.2+
CassError
cass_collection_append_int32
( collection, value )Appends an “int” to the collection.
CassError
cass_collection_append_uint32
( collection, value )Appends a “date” to the collection.
Requires Cassandra: 2.2+
CassError
cass_collection_append_int64
( collection, value )Appends a “bigint”, “counter”, “timestamp” or “time” to the collection.
CassError
cass_collection_append_float
( collection, value )Appends a “float” to the collection.
CassError
cass_collection_append_double
( collection, value )Appends a “double” to the collection.
CassError
cass_collection_append_bool
( collection, value )Appends a “boolean” to the collection.
CassError
cass_collection_append_string
( collection, value )Appends an “ascii”, “text” or “varchar” to the collection.
CassError
cass_collection_append_string_n
( collection, value, value_length )Same as CassCollection::cass_collection_append_string
, but with lengths for string parameters.
CassError
cass_collection_append_bytes
( collection, value, value_size )Appends a “blob”, “varint” or “custom” to the collection.
CassError
cass_collection_append_custom
( collection, class_name, value, value_size )Appends a “custom” to the collection.
CassError
cass_collection_append_custom_n
( collection, class_name, class_name_length, value, value_size )Same as CassCollection::cass_collection_append_custom
, but with lengths for string parameters.
CassError
cass_collection_append_uuid
( collection, value )Appends a “uuid” or “timeuuid” to the collection.
CassError
cass_collection_append_inet
( collection, value )Appends an “inet” to the collection.
CassError
cass_collection_append_decimal
( collection, varint, varint_size, scale )Appends a “decimal” to the collection.
CassError
cass_collection_append_duration
( collection, months, days, nanos )Appends a “duration” to the collection.
Requires Cassandra: 3.10+
CassError
cass_collection_append_collection
( collection, value )Appends a “list”, “map” or “set” to the collection.
Requires Cassandra: 2.1+
CassError
cass_collection_append_tuple
( collection, value )Appends a “tuple” to the collection.
Requires Cassandra: 2.1+
CassError
cass_collection_append_user_type
( collection, value )Appends a “udt” to the collection.
Requires Cassandra: 2.1+