ClickHouse/src/Storages/Hive/StorageHiveMetadata.h
Robert Schulze 78fc36ca49
Generate config.h into ${CONFIG_INCLUDE_PATH}
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.
2022-09-28 12:48:26 +00:00

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