mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
78fc36ca49
This makes the target location consistent with other auto-generated files like config_formats.h, config_core.h, and config_functions.h and simplifies the build of clickhouse_common.
45 lines
1.0 KiB
C++
45 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include "config.h"
|
|
|
|
#if USE_HIVE
|
|
|
|
#include <Storages/Cache/IRemoteFileMetadata.h>
|
|
namespace DB
|
|
{
|
|
|
|
class StorageHiveMetadata : public IRemoteFileMetadata
|
|
{
|
|
public:
|
|
StorageHiveMetadata() = default;
|
|
|
|
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_;
|
|
}
|
|
|
|
~StorageHiveMetadata() override = default;
|
|
|
|
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;
|
|
};
|
|
|
|
}
|
|
#endif
|