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.
12 #include "rocksdb/compaction_filter.h"
13 #include "rocksdb/slice.h"
17 class RemoveEmptyValueCompactionFilter
: public CompactionFilter
{
19 const char* Name() const override
;
20 bool Filter(int level
,
22 const Slice
& existing_value
,
23 std::string
* new_value
,
24 bool* value_changed
) const override
;
26 } // namespace rocksdb
27 #endif // !ROCKSDB_LITE