classname_fieldname_search

Initializes a typed iterator over values in a range of an ordered persistent sequence field.

Prototype

    MCO_RET classname_fieldname_search(
        classname *handle,
        mco_seq_iterator_h iterator,
        field_type low,
        mco_seq_boundary_kind_t low_boundary,
        field_type high,
        mco_seq_boundary_kind_t high_boundary);

For fixed-width character fields, the generated boundary arguments are char * values of the field width.

Boundaries

The function is generated only for fields declared with ascending or descending sequence order. It respects that declared direction while producing matching stored values. MCO_S_NOTFOUND means that the field is empty or the range contains no values.

Example

    mco_seq_iterator_t range;
    MCO_RET rc;

    rc = Sensor_timestamps_search(
        &sensor,
        &range,
        100,
        MCO_SEQ_BOUNDARY_INCLUSIVE,
        200,
        MCO_SEQ_BOUNDARY_EXCLUSIVE);

The returned iterator is lazy and borrows the field handle and transaction. Typed traversal preserves logical positions and expands RLE runs.