#pragma once #include #include #include namespace DB { class ObjectStorageQueueUnorderedFileMetadata : public ObjectStorageQueueIFileMetadata { public: using Bucket = size_t; explicit ObjectStorageQueueUnorderedFileMetadata( const std::filesystem::path & zk_path, const std::string & path_, FileStatusPtr file_status_, size_t max_loading_retries_, LoggerPtr log_); static std::vector getMetadataPaths() { return {"processed", "failed", "processing"}; } void setProcessedAtStartRequests( Coordination::Requests & requests, const zkutil::ZooKeeperPtr & zk_client) override; private: std::pair setProcessingImpl() override; void setProcessedImpl() override; }; }