#include <aggregator.h>
Public Member Functions | |
virtual void | Init (string name, Ptr< RapidNetApplicationBase > app, list< attrdeftype > allAttrs, uint32_t aggrPos) |
Initializes the aggregate implementation object. | |
virtual void | Insert (Ptr< Tuple > tuple) |
Inserts a tuple into the aggregate. | |
virtual void | Delete (Ptr< Tuple > tuple) |
Deletes a tuple from the aggregate. | |
Protected Member Functions | |
virtual bool | Compare (Ptr< Tuple > tuple1, Ptr< Tuple > tuple2)=0 |
Comparison of tuples to be implemented by sub-classes. | |
Protected Attributes | |
Ptr< Relation > | m_aggrResults |
Relation with the aggregated results. | |
Ptr< Relation > | m_tempReln |
Temporary relation that contains all tuples. |
virtual void ns3::rapidnet::Aggregator::Init | ( | string | name, | |
Ptr< RapidNetApplicationBase > | app, | |||
list< attrdeftype > | allAttrs, | |||
uint32_t | aggrPos | |||
) | [virtual] |
Initializes the aggregate implementation object.
It creates an internal table with all tuples and a results table with the aggregated results. It sets the all attributes for the internal table and also specifies the position number of the attribute over which the aggregate is defined. The attributes before this in position are used to define the group (as in the GROUP BY command in SQL)