2121
2222namespace doris ::pipeline {
2323
24- AggSinkOperator::AggSinkOperator (AggSinkOperatorTemplate * operator_template,
24+ AggSinkOperator::AggSinkOperator (AggSinkOperatorBuilder * operator_template,
2525 vectorized::AggregationNode* agg_node,
2626 std::shared_ptr<AggContext> agg_context)
2727 : Operator(operator_template), _agg_node(agg_node), _agg_context(std::move(agg_context)) {}
@@ -117,23 +117,23 @@ Status AggSinkOperator::close(RuntimeState* state) {
117117
118118// ///////////////////////////// operator template ////////////////////////////////
119119
120- AggSinkOperatorTemplate::AggSinkOperatorTemplate (int32_t id, const std::string& name,
121- vectorized::AggregationNode* exec_node,
122- std::shared_ptr<AggContext> agg_context)
123- : OperatorTemplate (id, name, exec_node),
120+ AggSinkOperatorBuilder::AggSinkOperatorBuilder (int32_t id, const std::string& name,
121+ vectorized::AggregationNode* exec_node,
122+ std::shared_ptr<AggContext> agg_context)
123+ : OperatorBuilder (id, name, exec_node),
124124 _agg_node (exec_node),
125125 _agg_context(std::move(agg_context)) {}
126126
127- OperatorPtr AggSinkOperatorTemplate ::build_operator () {
127+ OperatorPtr AggSinkOperatorBuilder ::build_operator () {
128128 return std::make_shared<AggSinkOperator>(this , _agg_node, _agg_context);
129129}
130130
131131// use final aggregation source operator
132- bool AggSinkOperatorTemplate ::is_sink () const {
132+ bool AggSinkOperatorBuilder ::is_sink () const {
133133 return true ;
134134}
135135
136- bool AggSinkOperatorTemplate ::is_source () const {
136+ bool AggSinkOperatorBuilder ::is_source () const {
137137 return false ;
138138}
139139} // namespace doris::pipeline
0 commit comments