ClickHouse/src/Backups/BackupEntryReference.h
2023-11-13 14:43:02 +00:00

26 lines
663 B
C++

#pragma once
#include <Backups/IBackupEntry.h>
namespace DB
{
/// Represents a reference to another backup entry.
class BackupEntryReference : public IBackupEntry
{
public:
explicit BackupEntryReference(std::string reference_target_);
UInt64 getSize() const override;
UInt128 getChecksum(const ReadSettings & read_settings) const override;
std::unique_ptr<SeekableReadBuffer> getReadBuffer(const ReadSettings & read_settings) const override;
DataSourceDescription getDataSourceDescription() const override;
bool isReference() const override;
String getReferenceTarget() const override;
private:
String reference_target;
};
}