Menu

CassCustomPayload

struct CassCustomPayload

Requires Apache Cassandra: 2.2+

Public Functions

CassCustomPayload *cass_custom_payload_new()

Creates a new custom payload.

Requires Apache Cassandra: 2.2+

Return

Returns a custom payload that must be freed.

See

cass_custom_payload_free()

void cass_custom_payload_free(CassCustomPayload *payload)

Frees a custom payload instance.

Requires Apache Cassandra: 2.2+

Parameters
  • payload:

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
  • payload:

  • name:

  • value:

  • value_size:

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 cass_custom_payload_set(), but with lengths for string parameters.

Requires Apache Cassandra: 2.2+

Parameters
  • payload:

  • name:

  • name_length:

  • value:

  • value_size:

void cass_custom_payload_remove(CassCustomPayload *payload, const char *name)

Removes an item from the custom payload.

Requires Apache Cassandra: 2.2+

Parameters
  • payload:

  • name:

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

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

Requires Apache Cassandra: 2.2+

Parameters
  • payload:

  • name:

  • name_length: