mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
26 lines
663 B
C++
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;
|
|
};
|
|
|
|
}
|