Was this page helpful?
CassUserType¶
-
struct CassUserType¶
A user defined type.
Requires Apache Cassandra: 2.1+
Public Functions
-
CassUserType *cass_user_type_new_from_data_type(const CassDataType *data_type)¶
Creates a new user defined type from existing data type;
Requires Apache Cassandra: 2.1+
See also
- Parameters:
data_type – [in]
- Returns:
Returns a user defined type that must be freed. NULL is returned if the data type is not a user defined type.
-
void cass_user_type_free(CassUserType *user_type)¶
Frees a user defined type instance.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
-
CassError cass_user_type_set_null(CassUserType *user_type, size_t index)¶
Sets a null in a user defined type at the specified index.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
index – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_null_by_name(CassUserType *user_type, const char *name)¶
Sets a null in a user defined type at the specified name.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
name – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_null_by_name_n(CassUserType *user_type, const char *name, size_t name_length)¶
Same as cass_user_type_set_null_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.1+
See also
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
- Returns:
-
CassError cass_user_type_set_int8(CassUserType *user_type, size_t index, cass_int8_t value)¶
Sets a “tinyint” in a user defined type at the specified index.
Requires Apache Cassandra: 2.2+
- Parameters:
user_type – [in]
index – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_int8_by_name(CassUserType *user_type, const char *name, cass_int8_t value)¶
Sets a “tinyint” in a user defined type at the specified name.
Requires Apache Cassandra: 2.2+
- Parameters:
user_type – [in]
name – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_int8_by_name_n(CassUserType *user_type, const char *name, size_t name_length, cass_int8_t value)¶
Same as cass_user_type_set_int8_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.2+
See also
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
value – [in]
- Returns:
-
CassError cass_user_type_set_int16(CassUserType *user_type, size_t index, cass_int16_t value)¶
Sets an “smallint” in a user defined type at the specified index.
Requires Apache Cassandra: 2.2+
- Parameters:
user_type – [in]
index – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_int16_by_name(CassUserType *user_type, const char *name, cass_int16_t value)¶
Sets an “smallint” in a user defined type at the specified name.
Requires Apache Cassandra: 2.2+
- Parameters:
user_type – [in]
name – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_int16_by_name_n(CassUserType *user_type, const char *name, size_t name_length, cass_int16_t value)¶
Same as cass_user_type_set_int16_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.2+
See also
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
value – [in]
- Returns:
-
CassError cass_user_type_set_int32(CassUserType *user_type, size_t index, cass_int32_t value)¶
Sets an “int” in a user defined type at the specified index.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
index – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_int32_by_name(CassUserType *user_type, const char *name, cass_int32_t value)¶
Sets an “int” in a user defined type at the specified name.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
name – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_int32_by_name_n(CassUserType *user_type, const char *name, size_t name_length, cass_int32_t value)¶
Same as cass_user_type_set_int32_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.1+
See also
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
value – [in]
- Returns:
-
CassError cass_user_type_set_uint32(CassUserType *user_type, size_t index, cass_uint32_t value)¶
Sets a “date” in a user defined type at the specified index.
Requires Apache Cassandra: 2.2+
- Parameters:
user_type – [in]
index – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_uint32_by_name(CassUserType *user_type, const char *name, cass_uint32_t value)¶
Sets a “date” in a user defined type at the specified name.
Requires Apache Cassandra: 2.2+
- Parameters:
user_type – [in]
name – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_uint32_by_name_n(CassUserType *user_type, const char *name, size_t name_length, cass_uint32_t value)¶
Same as cass_user_type_set_uint32_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.2+
See also
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
value – [in]
- Returns:
-
CassError cass_user_type_set_int64(CassUserType *user_type, size_t index, cass_int64_t value)¶
Sets an “bigint”, “counter”, “timestamp” or “time” in a user defined type at the specified index.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
index – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_int64_by_name(CassUserType *user_type, const char *name, cass_int64_t value)¶
Sets an “bigint”, “counter”, “timestamp” or “time” in a user defined type at the specified name.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
name – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_int64_by_name_n(CassUserType *user_type, const char *name, size_t name_length, cass_int64_t value)¶
Same as cass_user_type_set_int64_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.1+
See also
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
value – [in]
- Returns:
-
CassError cass_user_type_set_float(CassUserType *user_type, size_t index, cass_float_t value)¶
Sets a “float” in a user defined type at the specified index.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
index – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_float_by_name(CassUserType *user_type, const char *name, cass_float_t value)¶
Sets a “float” in a user defined type at the specified name.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
name – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_float_by_name_n(CassUserType *user_type, const char *name, size_t name_length, cass_float_t value)¶
Same as cass_user_type_set_float_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.1+
See also
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
value – [in]
- Returns:
-
CassError cass_user_type_set_double(CassUserType *user_type, size_t index, cass_double_t value)¶
Sets an “double” in a user defined type at the specified index.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
index – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_double_by_name(CassUserType *user_type, const char *name, cass_double_t value)¶
Sets an “double” in a user defined type at the specified name.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
name – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_double_by_name_n(CassUserType *user_type, const char *name, size_t name_length, cass_double_t value)¶
Same as cass_user_type_set_double_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.1+
See also
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
value – [in]
- Returns:
-
CassError cass_user_type_set_bool(CassUserType *user_type, size_t index, cass_bool_t value)¶
Sets a “boolean” in a user defined type at the specified index.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
index – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_bool_by_name(CassUserType *user_type, const char *name, cass_bool_t value)¶
Sets a “boolean” in a user defined type at the specified name.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
name – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_bool_by_name_n(CassUserType *user_type, const char *name, size_t name_length, cass_bool_t value)¶
Same as cass_user_type_set_double_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.1+
See also
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
value – [in]
- Returns:
-
CassError cass_user_type_set_string(CassUserType *user_type, size_t index, const char *value)¶
Sets an “ascii”, “text” or “varchar” in a user defined type at the specified index.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
index – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_string_n(CassUserType *user_type, size_t index, const char *value, size_t value_length)¶
Same as cass_user_type_set_string(), but with lengths for string parameters.
Requires Apache Cassandra: 2.1+
See also
- Parameters:
user_type – [in]
index – [in]
value – [in]
value_length – [in]
- Returns:
same as cass_user_type_set_string()
-
CassError cass_user_type_set_string_by_name(CassUserType *user_type, const char *name, const char *value)¶
Sets an “ascii”, “text” or “varchar” in a user defined type at the specified name.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
name – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_string_by_name_n(CassUserType *user_type, const char *name, size_t name_length, const char *value, size_t value_length)¶
Same as cass_user_type_set_string_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.1+
See also
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
value – [in]
value_length – [in]
- Returns:
-
CassError cass_user_type_set_bytes(CassUserType *user_type, size_t index, const cass_byte_t *value, size_t value_size)¶
Sets a “blob” “varint” or “custom” in a user defined type at the specified index.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
index – [in]
value – [in]
value_size – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_bytes_by_name(CassUserType *user_type, const char *name, const cass_byte_t *value, size_t value_size)¶
Sets a “blob”, “varint” or “custom” in a user defined type at the specified name.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
name – [in]
value – [in]
value_size – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_bytes_by_name_n(CassUserType *user_type, const char *name, size_t name_length, const cass_byte_t *value, size_t value_size)¶
Same as cass_user_type_set_bytes_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.1+
See also
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
value – [in]
value_size – [in]
- Returns:
-
CassError cass_user_type_set_custom(CassUserType *user_type, size_t index, const char *class_name, const cass_byte_t *value, size_t value_size)¶
Sets a “custom” in a user defined type at the specified index.
- Parameters:
user_type – [in]
index – [in]
class_name – [in]
value – [in]
value_size – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_custom_n(CassUserType *user_type, size_t index, const char *class_name, size_t class_name_length, const cass_byte_t *value, size_t value_size)¶
Same as cass_user_type_set_custom(), but with lengths for string parameters.
See also
- Parameters:
user_type – [in]
index – [in]
class_name – [in]
class_name_length – [in]
value – [in]
value_size – [in]
- Returns:
same as cass_user_type_set_custom()
-
CassError cass_user_type_set_custom_by_name(CassUserType *user_type, const char *name, const char *class_name, const cass_byte_t *value, size_t value_size)¶
Sets a “custom” in a user defined type at the specified name.
- Parameters:
user_type – [in]
name – [in]
class_name – [in]
value – [in]
value_size – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_custom_by_name_n(CassUserType *user_type, const char *name, size_t name_length, const char *class_name, size_t class_name_length, const cass_byte_t *value, size_t value_size)¶
Same as cass_user_type_set_custom_by_name(), but with lengths for string parameters.
See also
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
class_name – [in]
class_name_length – [in]
value – [in]
value_size – [in]
- Returns:
-
CassError cass_user_type_set_uuid(CassUserType *user_type, size_t index, CassUuid value)¶
Sets a “uuid” or “timeuuid” in a user defined type at the specified index.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
index – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_uuid_by_name(CassUserType *user_type, const char *name, CassUuid value)¶
Sets a “uuid” or “timeuuid” in a user defined type at the specified name.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
name – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_uuid_by_name_n(CassUserType *user_type, const char *name, size_t name_length, CassUuid value)¶
Same as cass_user_type_set_uuid_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.1+
See also
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
value – [in]
- Returns:
-
CassError cass_user_type_set_inet(CassUserType *user_type, size_t index, CassInet value)¶
Sets a “inet” in a user defined type at the specified index.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
index – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_inet_by_name(CassUserType *user_type, const char *name, CassInet value)¶
Sets a “inet” in a user defined type at the specified name.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
name – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_inet_by_name_n(CassUserType *user_type, const char *name, size_t name_length, CassInet value)¶
Same as cass_user_type_set_inet_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.1+
See also
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
value – [in]
- Returns:
-
CassError cass_user_type_set_decimal(CassUserType *user_type, size_t index, const cass_byte_t *varint, size_t varint_size, int scale)¶
Sets an “decimal” in a user defined type at the specified index.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
index – [in]
varint – [in]
varint_size – [in]
scale – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_decimal_by_name(CassUserType *user_type, const char *name, const cass_byte_t *varint, size_t varint_size, int scale)¶
Sets “decimal” in a user defined type at the specified name.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
name – [in]
varint – [in]
varint_size – [in]
scale – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_decimal_by_name_n(CassUserType *user_type, const char *name, size_t name_length, const cass_byte_t *varint, size_t varint_size, int scale)¶
Same as cass_user_type_set_decimal_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.1+
See also
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
varint – [in]
varint_size – [in]
scale – [in]
- Returns:
-
CassError cass_user_type_set_duration(CassUserType *user_type, size_t index, cass_int32_t months, cass_int32_t days, cass_int64_t nanos)¶
Sets a “duration” in a user defined type at the specified index.
Requires Apache Cassandra: 3.10+
- Parameters:
user_type – [in]
index – [in]
months – [in]
days – [in]
nanos – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_duration_by_name(CassUserType *user_type, const char *name, cass_int32_t months, cass_int32_t days, cass_int64_t nanos)¶
Sets “duration” in a user defined type at the specified name.
Requires Apache Cassandra: 3.10+
- Parameters:
user_type – [in]
name – [in]
months – [in]
days – [in]
nanos – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_duration_by_name_n(CassUserType *user_type, const char *name, size_t name_length, cass_int32_t months, cass_int32_t days, cass_int64_t nanos)¶
Same as cass_user_type_set_duration_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 3.10+
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
months – [in]
days – [in]
nanos – [in]
- Returns:
-
CassError cass_user_type_set_collection(CassUserType *user_type, size_t index, const CassCollection *value)¶
Sets a “list”, “map” or “set” in a user defined type at the specified index.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
index – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_collection_by_name(CassUserType *user_type, const char *name, const CassCollection *value)¶
Sets a “list”, “map” or “set” in a user defined type at the specified name.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
name – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_collection_by_name_n(CassUserType *user_type, const char *name, size_t name_length, const CassCollection *value)¶
Same as cass_user_type_set_collection_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
value – [in]
- Returns:
-
CassError cass_user_type_set_tuple(CassUserType *user_type, size_t index, const CassTuple *value)¶
Sets a “tuple” in a user defined type at the specified index.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
index – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_tuple_by_name(CassUserType *user_type, const char *name, const CassTuple *value)¶
Sets a “tuple” in a user defined type at the specified name.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
name – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_tuple_by_name_n(CassUserType *user_type, const char *name, size_t name_length, const CassTuple *value)¶
Same as cass_user_type_set_tuple_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.1+
See also
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
value – [in]
- Returns:
-
CassError cass_user_type_set_user_type(CassUserType *user_type, size_t index, const CassUserType *value)¶
Sets a user defined type in a user defined type at the specified index.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
index – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_user_type_by_name(CassUserType *user_type, const char *name, const CassUserType *value)¶
Sets a user defined type in a user defined type at the specified name.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
name – [in]
value – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_user_type_by_name_n(CassUserType *user_type, const char *name, size_t name_length, const CassUserType *value)¶
Same as cass_user_type_set_user_type_by_name(), but with lengths for string parameters.
Requires Apache Cassandra: 2.1+
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
value – [in]
- Returns:
-
CassError cass_user_type_set_dse_point(CassUserType *user_type, size_t index, cass_double_t x, cass_double_t y)¶
Sets a point in a user defined type at the specified index.
- Parameters:
user_type – [in]
index – [in]
x – [in]
y – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_dse_point_by_name(CassUserType *user_type, const char *name, cass_double_t x, cass_double_t y)¶
Sets a point in a user defined type at the specified name.
- Parameters:
user_type – [in]
name – [in]
x – [in]
y – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_dse_point_by_name_n(CassUserType *user_type, const char *name, size_t name_length, cass_double_t x, cass_double_t y)¶
Same as cass_user_type_set_dse_point_by_name(), but with lengths for string parameters.
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
x – [in]
y – [in]
- Returns:
-
CassError cass_user_type_set_dse_line_string(CassUserType *user_type, size_t index, const DseLineString *line_string)¶
Sets a line string in a user defined type at the specified index.
- Parameters:
user_type – [in]
index – [in]
line_string – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_dse_line_string_by_name(CassUserType *user_type, const char *name, const DseLineString *line_string)¶
Sets a line string in a user defined type at the specified name.
- Parameters:
user_type – [in]
name – [in]
line_string – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_dse_line_string_by_name_n(CassUserType *user_type, const char *name, size_t name_length, const DseLineString *line_string)¶
Same as cass_user_type_set_dse_line_string_by_name(), but with lengths for string parameters.
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
line_string – [in]
- Returns:
-
CassError cass_user_type_set_dse_polygon(CassUserType *user_type, size_t index, const DsePolygon *polygon)¶
Sets a polygon in a user defined type at the specified index.
- Parameters:
user_type – [in]
index – [in]
polygon – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_dse_polygon_by_name(CassUserType *user_type, const char *name, const DsePolygon *polygon)¶
Sets a polygon in a user defined type at the specified name.
- Parameters:
user_type – [in]
name – [in]
polygon – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_dse_polygon_by_name_n(CassUserType *user_type, const char *name, size_t name_length, const DsePolygon *polygon)¶
Same as cass_user_type_set_dse_polygon_by_name(), but with lengths for string parameters.
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
polygon – [in]
- Returns:
-
CassError cass_user_type_set_dse_date_range(CassUserType *user_type, size_t index, const DseDateRange *range)¶
Sets a DateRange in a user defined type at the specified index.
- Parameters:
user_type – [in]
index – [in]
range – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_dse_date_range_by_name(CassUserType *user_type, const char *name, const DseDateRange *range)¶
Sets DateRange in a user defined type at the specified name.
- Parameters:
user_type – [in]
name – [in]
range – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError cass_user_type_set_dse_date_range_by_name_n(CassUserType *user_type, const char *name, size_t name_length, const DseDateRange *range)¶
Same as cass_user_type_set_dse_date_range_by_name(), but with lengths for string parameters.
- Parameters:
user_type – [in]
name – [in]
name_length – [in]
range – [in]
- Returns:
-
CassUserType *cass_user_type_new_from_data_type(const CassDataType *data_type)¶