Appends a contiguous array of elements and an element-level null bitmap to a persistent sequence field.
MCO_RET classname_fieldname_append_nullable(
classname *handle,
field_type const *values,
mco_size_t n_items,
mco_bitmap_word_t const *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.
MCO_S_OK: all elements and NULL states were appended.MCO_E_ACCESS: the transaction is not writable.MCO_E_SEQ_NULL_VALUE: an ordered field was given at least one NULL element.MCO_E_SEQ_OUT_OF_ORDER: an ordered field would become unordered.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.
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.