Apps Components Interfaces All Files Source Tree | source: tos.lib.TinyDB.Operator.nc |
Operators apply filters and transformations to data tuples and neighbor results. They are applied by the TupleRouter. Examples of operators include selections and aggregates (both of which implement the operator interface. Due to the fairly static nature of TinyDB, support for Selections and Aggregates are currently hard coded -- e.g., to add new operator types, explicit changes to the TupleRouter are needed.
Commands |
Parameters: |
qr - The query result e - The expression to check |
Events |
Commands - Details |
Parameters: |
qr - (input) The index of the result to return qs - The query whose results we are fetching e - The expressions whose results we are fetching Note that stateless operators (e.g. filters) may not return any results |
Parameters: |
qr - The result to process qs - The query corresponding to the result e - The expression corresponding to the result |
Returns: | Error code indicating type of failure. Expect err_InvalidAggregateRecord if qs or e don't correspond to qr. |
Parameters: |
q - The query that's being reset e - The expression that's being reset |
Events - Details |
Parameters: |
t - The tuple just processed. q - The query the tuple belongs to e - The expression that was applied. If e is a filter (selection operator) e->passed indicates if this tuple passed the filter. passed - True if this tuple passed the operator and should continue to be processed |