Skip to content

Commit

Permalink
ARROW-13638: [C++] Clean up class vs struct
Browse files Browse the repository at this point in the history
  • Loading branch information
lidavidm committed Aug 17, 2021
1 parent 5e2a439 commit 1d98312
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cpp/src/arrow/compute/exec/aggregate_node.cc
Expand Up @@ -87,7 +87,8 @@ class ThreadIndexer {
std::unordered_map<std::thread::id, size_t> id_to_index_;
};

struct ScalarAggregateNode : ExecNode {
class ScalarAggregateNode : public ExecNode {
public:
ScalarAggregateNode(ExecPlan* plan, std::vector<ExecNode*> inputs,
std::shared_ptr<Schema> output_schema,
std::vector<int> target_field_ids,
Expand Down Expand Up @@ -251,12 +252,12 @@ struct ScalarAggregateNode : ExecNode {
AtomicCounter input_counter_;
};

struct GroupByNode : ExecNode {
class GroupByNode : public ExecNode {
public:
GroupByNode(ExecNode* input, std::shared_ptr<Schema> output_schema, ExecContext* ctx,
const std::vector<int>&& key_field_ids,
const std::vector<int>&& agg_src_field_ids,
const std::vector<internal::Aggregate>&& aggs,
const std::vector<const HashAggregateKernel*>&& agg_kernels,
std::vector<int> key_field_ids, std::vector<int> agg_src_field_ids,
std::vector<internal::Aggregate> aggs,
std::vector<const HashAggregateKernel*> agg_kernels,
std::vector<std::unique_ptr<FunctionOptions>> owned_options)
: ExecNode(input->plan(), {input}, {"groupby"}, std::move(output_schema),
/*num_outputs=*/1),
Expand Down

0 comments on commit 1d98312

Please sign in to comment.