Was this page helpful?
Miscellaneous¶
-
enum CassClusteringOrder¶
Values:
-
enumerator CASS_CLUSTERING_ORDER_NONE¶
-
enumerator CASS_CLUSTERING_ORDER_ASC¶
-
enumerator CASS_CLUSTERING_ORDER_DESC¶
-
enumerator CASS_CLUSTERING_ORDER_NONE¶
-
enum CassProtocolVersion¶
Values:
-
enumerator CASS_PROTOCOL_VERSION_V1¶
Deprecated
-
enumerator CASS_PROTOCOL_VERSION_V2¶
Deprecated
-
enumerator CASS_PROTOCOL_VERSION_V3¶
-
enumerator CASS_PROTOCOL_VERSION_V4¶
-
enumerator CASS_PROTOCOL_VERSION_V5¶
-
enumerator CASS_PROTOCOL_VERSION_DSEV1¶
Only supported when using the DSE driver with DataStax Enterprise
-
enumerator CASS_PROTOCOL_VERSION_DSEV2¶
Only supported when using the DSE driver with DataStax Enterprise
-
enumerator CASS_PROTOCOL_VERSION_V1¶
-
enum CassHostListenerEvent¶
Values:
-
enumerator CASS_HOST_LISTENER_EVENT_UP¶
-
enumerator CASS_HOST_LISTENER_EVENT_DOWN¶
-
enumerator CASS_HOST_LISTENER_EVENT_ADD¶
-
enumerator CASS_HOST_LISTENER_EVENT_REMOVE¶
-
enumerator CASS_HOST_LISTENER_EVENT_UP¶
-
enum CassCompressionType¶
Values:
-
enumerator CASS_COMPRESSION_LZ4¶
-
enumerator CASS_COMPRESSION_SNAPPY¶
-
enumerator CASS_COMPRESSION_NONE¶
-
enumerator CASS_COMPRESSION_LZ4¶
-
typedef void (*CassHostListenerCallback)(CassHostListenerEvent event, const CassInet address, void *data)¶
A callback used to indicate the host state for a node in the cluster.
See also
cass_cluster_set_host_listener_callback()
- Param event:
[in]
- Param address:
[in]
- Param data:
[in]
-
cass_uint32_t cass_date_from_epoch(cass_int64_t epoch_secs)¶
Converts a unix timestamp (in seconds) to the Cassandra “date” type. The “date” type represents the number of days since the Epoch (1970-01-01) with the Epoch centered at the value 2^31.
- Parameters:
epoch_secs – [in]
- Returns:
the number of days since the date -5877641-06-23
-
cass_int64_t cass_time_from_epoch(cass_int64_t epoch_secs)¶
Converts a unix timestamp (in seconds) to the Cassandra “time” type. The “time” type represents the number of nanoseconds since midnight (range 0 to 86399999999999).
- Parameters:
epoch_secs – [in]
- Returns:
nanoseconds since midnight
-
cass_int64_t cass_date_time_to_epoch(cass_uint32_t date, cass_int64_t time)¶
Combines the Cassandra “date” and “time” types to Epoch time in seconds.
- Parameters:
date – [in]
time – [in]
- Returns:
Epoch time in seconds. Negative times are possible if the date occurs before the Epoch (1970-1-1).