From 5aac346ca4194ca6ab092b2c62df29b3df539cc4 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Tue, 11 Apr 2023 17:24:50 +0800 Subject: [PATCH] [minor](refactor) delete unused codes (#18540) --- be/src/pipeline/exec/meta_scan_operator.cpp | 37 ----------------- be/src/pipeline/exec/meta_scan_operator.h | 46 --------------------- 2 files changed, 83 deletions(-) delete mode 100644 be/src/pipeline/exec/meta_scan_operator.cpp delete mode 100644 be/src/pipeline/exec/meta_scan_operator.h diff --git a/be/src/pipeline/exec/meta_scan_operator.cpp b/be/src/pipeline/exec/meta_scan_operator.cpp deleted file mode 100644 index 30e8daf53d..0000000000 --- a/be/src/pipeline/exec/meta_scan_operator.cpp +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to the Apache Software Foundation (ASF) 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 "meta_scan_operator.h" - -#include "vec/exec/scan/vmeta_scan_node.h" - -namespace doris::pipeline { - -OPERATOR_CODE_GENERATOR(MetaScanOperator, SourceOperator) - -Status MetaScanOperator::open(RuntimeState* state) { - SCOPED_TIMER(_runtime_profile->total_time_counter()); - return _node->open(state); -} - -Status MetaScanOperator::close(RuntimeState* state) { - RETURN_IF_ERROR(SourceOperator::close(state)); - _node->close(state); - return Status::OK(); -} - -} // namespace doris::pipeline diff --git a/be/src/pipeline/exec/meta_scan_operator.h b/be/src/pipeline/exec/meta_scan_operator.h deleted file mode 100644 index f1f6194628..0000000000 --- a/be/src/pipeline/exec/meta_scan_operator.h +++ /dev/null @@ -1,46 +0,0 @@ -// Licensed to the Apache Software Foundation (ASF) 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. - -#pragma once - -#include "operator.h" - -namespace doris::vectorized { -class VMetaScanNode; -} // namespace doris::vectorized - -namespace doris::pipeline { - -class MetaScanOperatorBuilder : public OperatorBuilder { -public: - MetaScanOperatorBuilder(int32_t id, ExecNode* exec_node); - bool is_source() const override { return true; } - OperatorPtr build_operator() override; -}; - -class MetaScanOperator : public SourceOperator { -public: - MetaScanOperator(OperatorBuilderBase* operator_builder, ExecNode* scan_node); - - bool can_read() override { return true; } - - Status open(RuntimeState* state) override; - - Status close(RuntimeState* state) override; -}; - -} // namespace doris::pipeline \ No newline at end of file