mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-31 12:06:44 +00:00
schema: handle caching options
Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "utils/UUID.hh"
|
||||
#include "compress.hh"
|
||||
#include "compaction_strategy.hh"
|
||||
#include "caching_options.hh"
|
||||
|
||||
using column_id = uint32_t;
|
||||
|
||||
@@ -255,6 +256,7 @@ private:
|
||||
// we will use by default - when we have the choice.
|
||||
sstables::compaction_strategy_type _compaction_strategy = sstables::compaction_strategy_type::size_tiered;
|
||||
std::map<sstring, sstring> _compaction_strategy_options;
|
||||
caching_options _caching_options;
|
||||
};
|
||||
raw_schema _raw;
|
||||
thrift_schema _thrift;
|
||||
@@ -386,6 +388,10 @@ public:
|
||||
return _raw._speculative_retry;
|
||||
}
|
||||
|
||||
const ::caching_options& caching_options() const {
|
||||
return _raw._caching_options;
|
||||
}
|
||||
|
||||
const column_definition* get_column_definition(const bytes& name) const;
|
||||
const_iterator regular_begin() const {
|
||||
return regular_columns().begin();
|
||||
|
||||
@@ -142,6 +142,10 @@ public:
|
||||
_raw._compaction_strategy_options = std::move(options);
|
||||
}
|
||||
|
||||
void set_caching_options(caching_options c) {
|
||||
_raw._caching_options = std::move(c);
|
||||
}
|
||||
|
||||
void set_is_dense(bool is_dense) {
|
||||
_raw._is_dense = is_dense;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user