Field range defines a range of values to be used in a table or index iteration or multiGet operation. A field range is used as the least significant component in a partially specified PrimaryKey or IndexKey in order to create a value range for an operation that returns multiple rows or keys.
Creates a range of values to be used in a table or index iteration or multiGet operation.
- Note
- Regardless the type of the field, the start and end arguments requires string version of value.
- Parameters
-
[in] | field_name | The name of the field from the PrimaryKey or IndexKey to use for the range, it is copied and stored in the field range handle. |
[in] | start | The lower bound of the field range. If NULL, no lower bound is enforced. It is copied and stored in the field range handle. |
[in] | start_inclusive | Indicates whether the value specified to start is included in the range. Specify KV_TRUE if it is included, KV_FALSE otherwise. |
[in] | end | The upper bound of the field range. If NULL, no upper bound is enforced. It is copied and stored in the field range handle. |
[in] | end_inclusive | Indicates whether the value specified to end is included in the range. Specify KV_TRUE if it is included, KV_FALSE otherwise. |
[out] | rangep | The output field range handle. |
- Returns
- KV_SUCCESS on success, and an error code (a negative number) on failure.
Releases the resources used by the field range handle.
- Parameters
-
[in] | rangep | The pointer to the field range handle to release. |