]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/utilities/compaction_filters/remove_emptyvalue_compactionfilter.h
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / rocksdb / utilities / compaction_filters / remove_emptyvalue_compactionfilter.h
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under the BSD-style license found in the
3 // LICENSE file in the root directory of this source tree. An additional grant
4 // of patent rights can be found in the PATENTS file in the same directory.
5
6 #ifndef ROCKSDB_LITE
7
8 #pragma once
9
10 #include <string>
11
12 #include "rocksdb/compaction_filter.h"
13 #include "rocksdb/slice.h"
14
15 namespace rocksdb {
16
17 class RemoveEmptyValueCompactionFilter : public CompactionFilter {
18 public:
19 const char* Name() const override;
20 bool Filter(int level,
21 const Slice& key,
22 const Slice& existing_value,
23 std::string* new_value,
24 bool* value_changed) const override;
25 };
26 } // namespace rocksdb
27 #endif // !ROCKSDB_LITE