blob: 17c90f202077ceb66dde3d2a5dbae0b4fa7e5096 [file] [log] [blame]
// 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 KUDU_CLIENT_TABLE_INTERNAL_H
#define KUDU_CLIENT_TABLE_INTERNAL_H
#include <string>
#include "kudu/common/partition.h"
#include "kudu/client/client.h"
namespace kudu {
namespace client {
class KuduTable::Data {
public:
Data(sp::shared_ptr<KuduClient> client,
std::string name,
std::string table_id,
const KuduSchema& schema,
PartitionSchema partition_schema);
~Data();
sp::shared_ptr<KuduClient> client_;
std::string name_;
const std::string id_;
// TODO: figure out how we deal with a schema change from the client perspective.
// Do we make them call a RefreshSchema() method? Or maybe reopen the table and get
// a new KuduTable instance (which would simplify the object lifecycle a little?)
const KuduSchema schema_;
const PartitionSchema partition_schema_;
DISALLOW_COPY_AND_ASSIGN(Data);
};
} // namespace client
} // namespace kudu
#endif