SOS: Scalable Object Store
4.0.0
|
An Index keeps a named, ordered collection of Key/Value references to Objects. The Key is define by the type sos_key_t and the value is defined by the type sos_obj_ref_t. The Value is a Reference to an Object.
Some Indices are associated with an Attribute of a Schema. This is a convenience since internal to SOS, all of these collections are implemented as an Index. Whether a Schema attribute has an Index is specified when the Schema is created.
Other Indices are created directly with the sos_index_new() function. These Indices are primarily used when a complex key is required that is based on the value of more than a single Attribute. For example, if a use requires an ordering by Job + Time, a JobTime Index may be created where the key is the concatenation of the Job Id and the Unix Timestamp.
The functions for managing Indices include the following: