A collection structure

A collection structure, MI_COLLECTION, is a DataBlade® API structure that holds the collection (LIST, MULTISET, or SET) and its elements. The following table summarizes the memory operations for a collection structure.
Memory duration Memory operation Function name
Current® memory duration Constructor mi_collection_copy(), mi_collection_create(), mi_streamread_collection()
Current memory duration Destructor mi_collection_free()
The following DataBlade API functions return an existing collection structure.
mi_value(), mi_value_by_name()
Returns a collection structure as a column value when the function returns an MI_COLLECTION_VALUE value status