Type 1 (time-based) or type 4 (random) UUID.

Attributes

cass_uint64_t

time_and_version

cass_uint64_t

clock_seq_and_node

Functions

void

cass_uuid_min_from_time

( time, output )

Sets the UUID to the minimum V1 (time) value for the specified time.

Parameters:
Name Type Details
in time
out output

A minimum V1 UUID for the specified time.

void

cass_uuid_max_from_time

( time, output )

Sets the UUID to the maximum V1 (time) value for the specified time.

Parameters:
Name Type Details
in time
out output

A maximum V1 UUID for the specified time.

cass_uint64_t

cass_uuid_timestamp

( uuid )

Gets the timestamp for a V1 UUID

Parameters:
Name Type Details
in uuid
Returns:
Type Details
cass_uint64_t

The timestamp in milliseconds since the Epoch (00:00:00 UTC on 1 January 1970). 0 returned if the UUID is not V1.

cass_uint8_t

cass_uuid_version

( uuid )

Gets the version for a UUID

Parameters:
Name Type Details
in uuid
Returns:
Type Details
cass_uint8_t

The version of the UUID (1 or 4)

void

cass_uuid_string

( uuid, output )

Returns a null-terminated string for the specified UUID.

Parameters:
Name Type Details
in uuid
out output

A null-terminated string of length CASS_UUID_STRING_LENGTH.

CassError

cass_uuid_from_string

( str, output )

Returns a UUID for the specified string.

Example: “550e8400-e29b-41d4-a716-446655440000”

Parameters:
Name Type Details
in str
out output