classname_fieldname_append_nullable

Appends a contiguous array of elements and an element-level null bitmap to a persistent sequence field.

Prototype

    MCO_RET classname_fieldname_append_nullable(
        classname *handle,
        field_type const *values,
        mco_size_t n_items,
        mco_bitmap_word_t const *null_bitmap
    );

Null bitmap

Bit i corresponds to values[i]. A set bit marks the element as NULL; its payload bytes are ignored by typed nullable traversal. The bitmap contains at least (n_items + 63) / 64 words. A NULL bitmap pointer means that no appended elements are NULL.

This bitmap controls element NULL values. It does not set or clear the generated indicator of a nullable sequence field.

Restrictions and return codes

Allocation and transaction errors can also be propagated. With RLE storage, NULL state is part of run identity, so equal adjacent payloads with different NULL states form different runs.

Example

    mco_int4 values[3] = { 10, 0, 30 };
    mco_bitmap_word_t nulls[1] = { 2 };
    MCO_RET rc;

    rc = Sensor_readings_append_nullable(&sensor, values, 3, nulls);

Use classname_fieldname_append_nullable() to append NULL elements.