Files
doris/be/src/exec/schema_scanner/schema_schemata_scanner.h
2017-08-11 17:51:21 +08:00

48 lines
1.5 KiB
C++

// Modifications copyright (C) 2017, Baidu.com, Inc.
// Copyright 2017 The Apache Software Foundation
// 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.
#ifndef BDG_PALO_BE_SRC_QUERY_EXEC_SCHEMA_SCANNER_SCHEMA_SCHEMATA_SCANNER_H
#define BDG_PALO_BE_SRC_QUERY_EXEC_SCHEMA_SCANNER_SCHEMA_SCHEMATA_SCANNER_H
#include "exec/schema_scanner.h"
#include "gen_cpp/FrontendService_types.h"
namespace palo {
class SchemaSchemataScanner : public SchemaScanner {
public:
SchemaSchemataScanner();
virtual ~SchemaSchemataScanner();
virtual Status start(RuntimeState *state);
virtual Status get_next_row(Tuple *tuple, MemPool *pool, bool *eos);
private:
Status fill_one_row(Tuple *tuple, MemPool *pool);
int _db_index;
TGetDbsResult _db_result;
static SchemaScanner::ColumnDesc _s_columns[];
};
}
#endif