sstables: add yet another variant of filter_has_key()

This time public, for use when preloading the cache.
This commit is contained in:
Avi Kivity
2015-08-09 22:03:01 +03:00
parent 29ce425862
commit fee3a9513b

View File

@@ -370,6 +370,9 @@ private:
void write_range_tombstone(file_writer& out, const composite& clustering_prefix, std::vector<bytes_view> suffix, const tombstone t);
void write_collection(file_writer& out, const composite& clustering_key, const column_definition& cdef, collection_mutation::view collection);
public:
bool filter_has_key(const schema& s, const partition_key& key) {
return filter_has_key(key::from_partition_key(s, key));
}
// Allow the test cases from sstable_test.cc to test private methods. We use
// a placeholder to avoid cluttering this class too much. The sstable_test class
// will then re-export as public every method it needs.