Requires Apache Cassandra: 2.2+

Functions

CassCustomPayload *

cass_custom_payload_new

( )

Creates a new custom payload.

Requires Apache Cassandra: 2.2+

Returns:
Type Details
CassCustomPayload *

Returns a custom payload that must be freed.

See Also:
void

cass_custom_payload_free

( CassCustomPayload * payload )

Frees a custom payload instance.

Requires Apache Cassandra: 2.2+

Parameters:
Name Type Details
in payload CassCustomPayload *
void

cass_custom_payload_set

( CassCustomPayload * payload, const char * name, const cass_byte_t * value, size_t value_size )

Sets an item to the custom payload.

Requires Apache Cassandra: 2.2+

Parameters:
Name Type Details
in payload CassCustomPayload *
in name const char *
in value const cass_byte_t *
in value_size size_t
void

cass_custom_payload_set_n

( CassCustomPayload * payload, const char * name, size_t name_length, const cass_byte_t * value, size_t value_size )

Same as CassCustomPayload::cass_custom_payload_set, but with lengths for string parameters.

Requires Apache Cassandra: 2.2+

Parameters:
Name Type Details
in payload CassCustomPayload *
in name const char *
in name_length size_t
in value const cass_byte_t *
in value_size size_t
void

cass_custom_payload_remove

( CassCustomPayload * payload, const char * name )

Removes an item from the custom payload.

Requires Apache Cassandra: 2.2+

Parameters:
Name Type Details
in payload CassCustomPayload *
in name const char *
void

cass_custom_payload_remove_n

( CassCustomPayload * payload, const char * name, size_t name_length )

Same as CassCustomPayload::cass_custom_payload_set, but with lengths for string parameters.

Requires Apache Cassandra: 2.2+

Parameters:
Name Type Details
in payload CassCustomPayload *
in name const char *
in name_length size_t