ClickHouse/src/Storages/Hive/StorageHiveMetadata.h
2021-12-06 18:19:36 +08:00

29 lines
881 B
C++

#pragma once
#include <IO/IRemoteFileMetadata.h>
namespace DB
{
class StorageHiveMetadata : public IRemoteFileMetadata
{
public:
StorageHiveMetadata() = default;
StorageHiveMetadata(const String & schema_,
const String & cluster_,
const String & remote_path_,
size_t file_size_,
UInt64 last_modification_timestamp_):
IRemoteFileMetadata(remote_path_, file_size_, last_modification_timestamp_),schema(schema_), cluster(cluster_){}
~StorageHiveMetadata() override;
String getName() const override { return "StorageHiveMetadata"; }
String getSchema() const { return schema; }
String getCluster() const { return cluster; }
String toString() const override;
bool fromString(const String &buf) override;
String getVersion() const override;
private:
String schema;
String cluster;
};
}