forked from milvus-io/milvus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhance: adding agg operator(milvus-io#37009)
Signed-off-by: MrPresent-Han <[email protected]>
- Loading branch information
MrPresent-Han
committed
Oct 21, 2024
1 parent
66c555f
commit c4c58aa
Showing
8 changed files
with
142 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// Created by hanchun on 24-10-18. | ||
// | ||
|
||
#include "QueryGroupByNode.h" | ||
|
||
namespace milvus { | ||
namespace exec { | ||
|
||
PhyQueryGroupByNode::PhyQueryGroupByNode(int32_t operator_id, | ||
DriverContext* ctx, | ||
const std::shared_ptr<const plan::AggregationNode>& node): | ||
Operator(ctx, node->output_type(), operator_id, node->id()){ | ||
|
||
} | ||
|
||
|
||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Licensed to the LF AI & Data foundation under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#include "exec/operator/Operator.h" | ||
|
||
namespace milvus{ | ||
namespace exec{ | ||
class PhyQueryGroupByNode: public Operator { | ||
public: | ||
PhyQueryGroupByNode(int32_t operator_id, | ||
DriverContext* ctx, | ||
const std::shared_ptr<const plan::AggregationNode>& node); | ||
|
||
bool NeedInput() const override { | ||
return true; | ||
} | ||
|
||
void AddInput(RowVectorPtr& input) override { | ||
|
||
} | ||
|
||
RowVectorPtr | ||
GetOutput() override { | ||
return nullptr; | ||
} | ||
|
||
bool | ||
IsFinished() override { | ||
return false; | ||
} | ||
|
||
bool | ||
IsFilter() override { | ||
return false; | ||
} | ||
|
||
BlockingReason | ||
IsBlocked(ContinueFuture* future){ | ||
return BlockingReason::kNotBlocked; | ||
} | ||
|
||
virtual void | ||
Close() { | ||
input_ = nullptr; | ||
results_.clear(); | ||
} | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters