schema: handle caching options

Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
This commit is contained in:
Glauber Costa
2015-08-06 13:40:39 -05:00
parent 97e965aac8
commit 498824971d
2 changed files with 10 additions and 0 deletions

View File

@@ -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();

View File

@@ -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;
}