Apps     Components     Interfaces     All Files     Source Tree     source: tos.lib.TinyDB.Aggregates.AggregateUse.nc

Interface: AggregateUse

Author: Eugene Shvets Intention is to make addition of user-defined aggregates easy. Dispatch is based on aggregate id (AggregateID enum is Aggregates.h), which is the first argument for every command in this interface. No in-memory data structures is created to keep aggregate info, therefore we need to pass ParamList argument to each command
Author: Eugene Shvets

Components providing this interface:
tos.lib.TinyDB.Aggregates.AggregateUseM

Components requiring this interface:
tos.lib.TinyDB.AggOperator

Commands

Commands - Details

merge

result_t merge(uint8_t id, char *destdata, char *mergedata, ParamList *params, ParamVals *paramValues)

dest, merge - raw data. each aggregate can cast it to appropriate data structure. Stuff that previosly came as part of expr->ex.tagg is passed in general way as list of params