classname_fieldname_subseq

Initializes a typed iterator over an inclusive range of logical positions in a persistent sequence field.

Prototype

    MCO_RET classname_fieldname_subseq(
        classname *handle,
        mco_seq_iterator_h iterator,
        mco_seq_no_t from,
        mco_seq_no_t till);

Range direction

The iterator is lazy and borrows handle and its transaction. The source must remain valid through traversal. MCO_S_NOTFOUND indicates an empty field or a range without a valid starting element.

Example

    mco_seq_iterator_t forward;
    mco_seq_iterator_t reverse;
    MCO_RET rc;

    rc = Sensor_readings_subseq(&sensor, &forward, 10, 14);
    if (rc == MCO_S_OK) {
        rc = Sensor_readings_subseq(&sensor, &reverse, 14, 10);
    }

Use the iterator's installed reset callback to restart it. Typed traversal expands RLE runs and preserves nullable-element positions.