Initializes a typed iterator over an inclusive range of logical positions in a persistent sequence field.
MCO_RET classname_fieldname_subseq(
classname *handle,
mco_seq_iterator_h iterator,
mco_seq_no_t from,
mco_seq_no_t till);
from <= till, traversal is forward: from, ..., till.from > till, traversal is reverse: from, ..., till.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.
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.