11#include "sql/expr/expression.h"
12#include "common/type/attr_type.h"
19 void update(
const T *values,
int size);
20 void update(
const T &value) { this->value += value; }
34 void update(
const T *values,
int size);
35 void update(
const T &value) { this->value++; }
50 void update(
const T *values,
int size);
51 void update(
const T &value)
59 return (U)((float)value / (
float)count);
63void *create_aggregate_state(AggregateExpr::Type aggr_type, AttrType attr_type);
65RC aggregate_state_update_by_value(
void *state, AggregateExpr::Type aggr_type, AttrType attr_type,
const Value &val);
66RC aggregate_state_update_by_column(
void *state, AggregateExpr::Type aggr_type, AttrType attr_type,
Column &col);
68RC finialize_aggregate_state(
void *state, AggregateExpr::Type aggr_type, AttrType attr_type,
Column &col);
Definition: aggregate_state.h:45
A column contains multiple values in contiguous memory with a specified type.
Definition: column.h:23
Definition: aggregate_state.h:30
Definition: aggregate_state.h:15
属性的值
Definition: value.h:31