[minor](refactor) delete unused codes (#18540)

This commit is contained in:
Gabriel
2023-04-11 17:24:50 +08:00
committed by GitHub
parent 79cd50e1ff
commit 5aac346ca4
2 changed files with 0 additions and 83 deletions

View File

@ -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

View File

@ -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<vectorized::VMetaScanNode> {
public:
MetaScanOperatorBuilder(int32_t id, ExecNode* exec_node);
bool is_source() const override { return true; }
OperatorPtr build_operator() override;
};
class MetaScanOperator : public SourceOperator<MetaScanOperatorBuilder> {
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