classname_fieldname_count

Returns the number of logical elements in a persistent sequence field.

Prototype

    MCO_RET classname_fieldname_count(
        classname *handle,
        mco_seq_no_t *count
    );

Arguments

handle is a valid object handle scoped to an active read-only or read-write transaction. count receives zero for an empty sequence or the logical element count otherwise.

RLE behavior

With the RLE sequence library, this function returns the expanded logical count, not the number of encoded runs or physical tiles.

Example

    mco_seq_no_t count;
    MCO_RET rc;

    rc = Sensor_readings_count(&sensor, &count);

MCO_S_OK indicates that *count is valid. Other database and transaction errors can be propagated.