#pragma once #include namespace DB { class SingleDiskVolume : public IVolume { public: SingleDiskVolume(const String & name_, DiskPtr disk, size_t max_data_part_size_ = 0): IVolume(name_, {disk}, max_data_part_size_) { } ReservationPtr reserve(UInt64 bytes) override { return disks[0]->reserve(bytes); } VolumeType getType() const override { return VolumeType::SINGLE_DISK; } }; using VolumeSingleDiskPtr = std::shared_ptr; using VolumesSingleDiskPtr = std::vector; }