Drop the AGPL license in favor of a source-available license. See the blog post [1] for details. [1] https://www.scylladb.com/2024/12/18/why-were-moving-to-a-source-available-license/
44 lines
915 B
C++
44 lines
915 B
C++
/*
|
|
*
|
|
* Modified by ScyllaDB
|
|
* Copyright (C) 2015-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: (LicenseRef-ScyllaDB-Source-Available-1.0 and Apache-2.0)
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "schema/schema_fwd.hh"
|
|
#include <fmt/core.h>
|
|
|
|
namespace streaming {
|
|
|
|
/**
|
|
* Summary of streaming.
|
|
*/
|
|
class stream_summary {
|
|
public:
|
|
table_id cf_id;
|
|
|
|
/**
|
|
* Number of files to transfer. Can be 0 if nothing to transfer for some streaming request.
|
|
*/
|
|
int files;
|
|
long total_size;
|
|
|
|
stream_summary() = default;
|
|
stream_summary(table_id _cf_id, int _files, long _total_size)
|
|
: cf_id (_cf_id)
|
|
, files(_files)
|
|
, total_size(_total_size) {
|
|
}
|
|
};
|
|
|
|
} // namespace streaming
|
|
|
|
template <> struct fmt::formatter<streaming::stream_summary> : fmt::formatter<string_view> {
|
|
auto format(const streaming::stream_summary&, fmt::format_context& ctx) const -> decltype(ctx.out());
|
|
};
|