mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 17:10:35 +00:00
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/
28 lines
655 B
C++
28 lines
655 B
C++
/*
|
|
* Copyright (C) 2021-present ScyllaDB
|
|
*
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "compaction/compaction_fwd.hh"
|
|
#include "sstables/sstable_set.hh"
|
|
|
|
namespace compaction {
|
|
|
|
// Used by manager to set goals and constraints on compaction strategies
|
|
class strategy_control {
|
|
public:
|
|
virtual ~strategy_control() {}
|
|
virtual bool has_ongoing_compaction(table_state& table_s) const noexcept = 0;
|
|
virtual std::vector<sstables::shared_sstable> candidates(table_state&) const = 0;
|
|
virtual std::vector<sstables::frozen_sstable_run> candidates_as_runs(table_state&) const = 0;
|
|
};
|
|
|
|
}
|
|
|