ClickHouse/src/Storages/Hive/StorageHiveMetadata.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.0 KiB
C++
Raw Normal View History

2021-12-06 10:19:36 +00:00
#pragma once
2022-01-04 07:06:19 +00:00
#include <Common/config.h>
#if USE_HIVE
#include <Storages/Cache/IRemoteFileMetadata.h>
2021-12-06 10:19:36 +00:00
namespace DB
{
2022-01-04 07:06:19 +00:00
2021-12-06 10:19:36 +00:00
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
2022-01-04 07:06:19 +00:00
~StorageHiveMetadata() override = default;
2021-12-06 10:19:36 +00:00
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;
};
2022-01-04 07:06:19 +00:00
2021-12-06 10:19:36 +00:00
}
2022-01-04 07:06:19 +00:00
#endif