blob: 8afbb116a83999d908fe3ad550648b20af9d4e91 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#pragma once
#include <functional>
#include <string>
#include <Disks/ObjectStorages/IObjectStorage_fwd.h>
namespace DB
{
/// Object metadata: path, size, path_key_for_cache.
struct StoredObject
{
std::string remote_path;
std::string local_path; /// or equivalent "metadata_path"
uint64_t bytes_size = 0;
StoredObject() = default;
explicit StoredObject(
const std::string & remote_path_,
uint64_t bytes_size_ = 0,
const std::string & local_path_ = "")
: remote_path(remote_path_)
, local_path(local_path_)
, bytes_size(bytes_size_) {}
};
using StoredObjects = std::vector<StoredObject>;
size_t getTotalSize(const StoredObjects & objects);
}
|