Turi Create
4.0
|
#include <core/storage/sframe_data/groupby_aggregate_operators.hpp>
Public Member Functions | |
group_aggregate_value * | new_instance () const |
Returns a new empty instance of sum with the same type. | |
void | add_element (const std::vector< flexible_type > &values) |
void | add_element_simple (const flexible_type &flex) |
void | combine (const group_aggregate_value &other) |
combines two partial zip | |
flexible_type | emit () const |
Emits the zip result. | |
bool | support_type (flex_type_enum type) const |
The types supported by the zip. | |
flex_type_enum | set_input_types (const std::vector< flex_type_enum > &types) |
std::string | name () const |
Name of the class. | |
void | save (oarchive &oarc) const |
Serializer. | |
void | load (iarchive &iarc) |
Deserializer. | |
virtual void | partial_finalize () |
virtual void | print (std::ostream &os) const |
Implements an aggregator that convert two values from two column into a key/value value inside a dictionary
Definition at line 997 of file groupby_aggregate_operators.hpp.
|
inlinevirtual |
Adds an element to the aggregate. Elements to be added will be either the input_type (as set by set_input_type()) or UNDEFINED.
Operator that expects more than one input values need to overwrite this function
Reimplemented from turi::group_aggregate_value.
Definition at line 1005 of file groupby_aggregate_operators.hpp.
|
inlinevirtual |
Adds an element to the aggregate. Simple version of add_element where there is only one input value for the operator
Implements turi::group_aggregate_value.
Definition at line 1015 of file groupby_aggregate_operators.hpp.
|
inlinevirtualinherited |
No more elements will be added to this value. However, this value may still be combined with other values.
Reimplemented in turi::groupby_operators::quantile.
Definition at line 75 of file group_aggregate_value.hpp.
|
inlinevirtualinherited |
Override this function for allowing the operator to be easily printed.
Reimplemented in turi::groupby_operators::variance.
Definition at line 134 of file group_aggregate_value.hpp.
|
inlinevirtual |
Sets the input types and returns the output type. For instance, a sum aggregator when summing integers will return an integer, and when summing doubles will return doubles.
Default implementation assumes there is ony one input, and output type is the same as input type.
Reimplemented from turi::group_aggregate_value.
Definition at line 1046 of file groupby_aggregate_operators.hpp.