mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 02:12:21 +00:00
29 lines
881 B
C++
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;
|
|
};
|
|
}
|