ClickHouse/src/Storages/Hive/StorageHiveMetadata.h

37 lines
969 B
C++
Raw Normal View History

2021-12-06 10:19:36 +00:00
#pragma once
#include <Storages/Cache/IRemoteFileMetadata.h>
2021-12-06 10:19:36 +00:00
namespace DB
{
class StorageHiveMetadata : public IRemoteFileMetadata
{
public:
StorageHiveMetadata() = default;
2021-12-27 07:31:24 +00:00
explicit StorageHiveMetadata(
const String & schema_,
const String & cluster_,
const String & remote_path_,
size_t file_size_,
UInt64 last_modification_timestamp_)
: schema(schema_), cluster(cluster_)
{
remote_path = remote_path_;
file_size = file_size_;
last_modification_timestamp = last_modification_timestamp_;
2021-12-23 03:50:26 +00:00
}
2021-12-27 07:31:24 +00:00
2021-12-06 10:19:36 +00:00
~StorageHiveMetadata() override;
String getName() const override { return "StorageHiveMetadata"; }
String getSchema() const { return schema; }
String getCluster() const { return cluster; }
String toString() const override;
2021-12-23 03:50:26 +00:00
bool fromString(const String & buf) override;
2021-12-06 10:19:36 +00:00
String getVersion() const override;
private:
String schema;
String cluster;
};
}