C API
19.3.0
Oracle NoSQL Database C Client
|
Functions | |
kv_error_t | kv_record_put_int (kv_record_t *record, const char *name, kv_int_t value) |
Sets an int value for the named field. More... | |
kv_error_t | kv_record_put_long (kv_record_t *record, const char *name, kv_long_t value) |
Sets a long value for the named field. More... | |
kv_error_t | kv_record_put_float (kv_record_t *record, const char *name, kv_float_t value) |
Sets a float value for the named field. More... | |
kv_error_t | kv_record_put_double (kv_record_t *record, const char *name, kv_double_t value) |
Sets a double value for the named field. More... | |
kv_error_t | kv_record_put_boolean (kv_record_t *record, const char *name, kv_boolean_t value) |
Sets a boolean value for the named field. More... | |
kv_error_t | kv_record_put_string (kv_record_t *record, const char *name, const char *value) |
Sets a string value for the named field. More... | |
kv_error_t | kv_record_put_bytes (kv_record_t *record, const char *name, const unsigned char *bytes, kv_int_t size) |
Sets a byte array value for the named field. More... | |
kv_error_t | kv_record_put_bytes_copy (kv_record_t *record, const char *name, const unsigned char *bytes, kv_int_t size) |
Sets a byte array value for the named field. More... | |
kv_error_t | kv_record_put_null (kv_record_t *record, const char *name) |
Sets a NULL value for the named field. More... | |
kv_array_t * | kv_record_put_array (kv_record_t *record, const char *name) |
Creates a nested array for the named field. More... | |
kv_array_t * | kv_record_put_sized_array (kv_record_t *record, const char *name, kv_int_t size) |
Creates a nested array with an initial size for the named field. More... | |
kv_map_t * | kv_record_put_map (kv_record_t *record, const char *name) |
Creates a nested map for the named field. More... | |
kv_record_t * | kv_record_put_record (kv_record_t *record, const char *name) |
Creates a nested record structure for the given record value. More... | |
kv_error_t | kv_record_get_int (const kv_record_t *record, const char *name, kv_int_t *value) |
Returns a int for a named field in a record. More... | |
kv_error_t | kv_record_get_long (const kv_record_t *record, const char *name, kv_long_t *value) |
Returns a long for a named field in a record. More... | |
kv_error_t | kv_record_get_float (const kv_record_t *record, const char *name, kv_float_t *value) |
Returns a float for a named field in a record. More... | |
kv_error_t | kv_record_get_double (const kv_record_t *record, const char *name, kv_double_t *value) |
Returns a double for a named field in a record. More... | |
kv_error_t | kv_record_get_boolean (const kv_record_t *record, const char *name, kv_boolean_t *value) |
Returns a boolean for a named field in a record. More... | |
kv_error_t | kv_record_get_string (const kv_record_t *record, const char *name, const char **value) |
Returns a string for a named field in a record. More... | |
kv_error_t | kv_record_get_bytes (const kv_record_t *record, const char *name, const unsigned char **bytes, kv_int_t *size) |
Returns a byte array value for a named field in a record. More... | |
kv_error_t | kv_record_get_array (const kv_record_t *record, const char *name, kv_array_t **value) |
Returns a nested array for a named field in a record. More... | |
kv_error_t | kv_record_get_map (const kv_record_t *record, const char *name, kv_map_t **value) |
Returns a nested map for a named field in a record. More... | |
kv_error_t | kv_record_get_record (const kv_record_t *record, const char *name, kv_record_t **value) |
Returns a nested record for a named field in a record. More... | |
kv_field_t * | kv_record_get_field (const kv_record_t *record, const char *name) |
Returns a field handle from a record by name. More... | |
kv_field_t ** | kv_record_get_fields (kv_record_t *record, kv_int_t *num) |
Returns all field values in a record. More... | |
kv_error_t kv_record_get_array | ( | const kv_record_t * | record, |
const char * | name, | ||
kv_array_t ** | value | ||
) |
Returns a nested array for a named field in a record.
[in] | record | The record handle. |
[in] | name | The field name. |
[out] | value | A pointer to the output value. |
kv_error_t kv_record_get_boolean | ( | const kv_record_t * | record, |
const char * | name, | ||
kv_boolean_t * | value | ||
) |
Returns a boolean for a named field in a record.
[in] | record | The record handle. |
[in] | name | The field name. |
[out] | value | A pointer to the output value. |
kv_error_t kv_record_get_bytes | ( | const kv_record_t * | record, |
const char * | name, | ||
const unsigned char ** | bytes, | ||
kv_int_t * | size | ||
) |
Returns a byte array value for a named field in a record.
[in] | record | The record handle. |
[in] | name | The field name. |
[out] | bytes | The output byte array value. |
[out] | size | The size of the output byte array. |
kv_error_t kv_record_get_double | ( | const kv_record_t * | record, |
const char * | name, | ||
kv_double_t * | value | ||
) |
Returns a double for a named field in a record.
[in] | record | The record handle. |
[in] | name | The field name. |
[out] | value | A pointer to the output value. |
kv_field_t* kv_record_get_field | ( | const kv_record_t * | record, |
const char * | name | ||
) |
Returns a field handle from a record by name.
[in] | record | The record handle. |
[in] | name | The field name. |
kv_field_t** kv_record_get_fields | ( | kv_record_t * | record, |
kv_int_t * | num | ||
) |
Returns all field values in a record.
[in] | record | The record handle. |
[out] | num | The number of fields returned. |
kv_error_t kv_record_get_float | ( | const kv_record_t * | record, |
const char * | name, | ||
kv_float_t * | value | ||
) |
Returns a float for a named field in a record.
[in] | record | The record handle. |
[in] | name | The field name. |
[out] | value | A pointer to the output value. |
kv_error_t kv_record_get_int | ( | const kv_record_t * | record, |
const char * | name, | ||
kv_int_t * | value | ||
) |
Returns a int for a named field in a record.
[in] | record | The record handle. |
[in] | name | The field name. |
[out] | value | A pointer to the output value. |
kv_error_t kv_record_get_long | ( | const kv_record_t * | record, |
const char * | name, | ||
kv_long_t * | value | ||
) |
Returns a long for a named field in a record.
[in] | record | The record handle. |
[in] | name | The field name. |
[out] | value | A pointer to the output value. |
kv_error_t kv_record_get_map | ( | const kv_record_t * | record, |
const char * | name, | ||
kv_map_t ** | value | ||
) |
Returns a nested map for a named field in a record.
[in] | record | The record handle. |
[in] | name | The field name. |
[out] | value | A pointer to the output value. |
kv_error_t kv_record_get_record | ( | const kv_record_t * | record, |
const char * | name, | ||
kv_record_t ** | value | ||
) |
Returns a nested record for a named field in a record.
[in] | record | The record handle. |
[in] | name | The field name. |
[out] | value | A pointer to the output value. |
kv_error_t kv_record_get_string | ( | const kv_record_t * | record, |
const char * | name, | ||
const char ** | value | ||
) |
Returns a string for a named field in a record.
[in] | record | The record handle. |
[in] | name | The field name. |
[out] | value | A pointer to the output UTF-8 encoded string. |
kv_array_t* kv_record_put_array | ( | kv_record_t * | record, |
const char * | name | ||
) |
Creates a nested array for the named field.
[in] | record | The record handle. |
[in] | name | The field name. |
kv_error_t kv_record_put_boolean | ( | kv_record_t * | record, |
const char * | name, | ||
kv_boolean_t | value | ||
) |
Sets a boolean value for the named field.
[in] | record | The record handle. |
[in] | name | The field name. |
[in] | value | The value to be set. |
kv_error_t kv_record_put_bytes | ( | kv_record_t * | record, |
const char * | name, | ||
const unsigned char * | bytes, | ||
kv_int_t | size | ||
) |
Sets a byte array value for the named field.
This function differs from kv_record_put_bytes_copy() in that it does not copy the contents of the bytes passed to the function. Therefore, the bytes should not be released or modified until the record structure in this function is released.
[in] | record | The record handle. |
[in] | name | The field name. |
[in] | bytes | The byte array value to be set. |
[in] | size | The size of bytes . |
kv_error_t kv_record_put_bytes_copy | ( | kv_record_t * | record, |
const char * | name, | ||
const unsigned char * | bytes, | ||
kv_int_t | size | ||
) |
Sets a byte array value for the named field.
This function differs from kv_record_put_bytes() in that it copies the contents of the bytes passed to the function, so that the buffer can be released, or modified and then reused in whatever way is required by the application.
[in] | record | The record handle. named field. |
[in] | name | The field name. |
[in] | bytes | The byte array value to be set. |
[in] | size | The size of bytes . |
kv_error_t kv_record_put_double | ( | kv_record_t * | record, |
const char * | name, | ||
kv_double_t | value | ||
) |
Sets a double value for the named field.
[in] | record | The record handle. |
[in] | name | The field name. |
[in] | value | The value to be set. |
kv_error_t kv_record_put_float | ( | kv_record_t * | record, |
const char * | name, | ||
kv_float_t | value | ||
) |
Sets a float value for the named field.
[in] | record | The record handle. |
[in] | name | The field name. |
[in] | value | The value to be set. |
kv_error_t kv_record_put_int | ( | kv_record_t * | record, |
const char * | name, | ||
kv_int_t | value | ||
) |
Sets an int value for the named field.
[in] | record | The record handle. |
[in] | name | The field name. |
[in] | value | The value to be set. |
kv_error_t kv_record_put_long | ( | kv_record_t * | record, |
const char * | name, | ||
kv_long_t | value | ||
) |
Sets a long value for the named field.
[in] | record | The record handle. |
[in] | name | The field name. |
[in] | value | The value to be set. |
kv_map_t* kv_record_put_map | ( | kv_record_t * | record, |
const char * | name | ||
) |
Creates a nested map for the named field.
[in] | record | The record handle. map value. |
[in] | name | The field name. |
kv_error_t kv_record_put_null | ( | kv_record_t * | record, |
const char * | name | ||
) |
Sets a NULL value for the named field.
[in] | record | The record handle. |
[in] | name | The field name. |
kv_record_t* kv_record_put_record | ( | kv_record_t * | record, |
const char * | name | ||
) |
Creates a nested record structure for the given record value.
[in] | record | The record handle. |
[in] | name | The field name. |
kv_array_t* kv_record_put_sized_array | ( | kv_record_t * | record, |
const char * | name, | ||
kv_int_t | size | ||
) |
Creates a nested array with an initial size for the named field.
[in] | record | The record handle. array value. |
[in] | name | The field name. |
[in] | size | The initial size of the array. |
kv_error_t kv_record_put_string | ( | kv_record_t * | record, |
const char * | name, | ||
const char * | value | ||
) |
Sets a string value for the named field.
[in] | record | The record handle. |
[in] | name | The field name. |
[in] | value | The value to be set. |