CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
24 namespace rocksdb {
class CompactionFilter; }
26 namespace catapult {
namespace cache {
62 std::unique_ptr<RocksPruningFilterImpl>
m_pImpl;
~RocksPruningFilter()
Destroys rocks pruning filter.
std::unique_ptr< RocksPruningFilterImpl > m_pImpl
Definition: RocksPruningFilter.h:61
void setPruningBoundary(uint64_t compactionBoundary)
Definition: RocksPruningFilter.cpp:62
uint64_t pruningBoundary() const
Returns pruning boundary.
Definition: RocksPruningFilter.cpp:83
size_t numRemoved() const
Returns number of pruned entries since last prune.
Definition: RocksPruningFilter.cpp:87
bool IgnoreSnapshots() const override
Definition: RocksPruningFilter.cpp:48
rocksdb::CompactionFilter * compactionFilter()
Returns underlying compaction filter.
Definition: RocksPruningFilter.cpp:79
Rocks pruning filter.
Definition: RocksPruningFilter.h:38
FilterPruningMode
Possible modes of rocks pruning filter.
Definition: RocksPruningFilter.h:29
Enabled, allocate underlying filter implementation.
constexpr size_t Special_Key_Max_Length
Definition: RocksInclude.h:30
size_t numRemoved() const
Definition: RocksPruningFilter.cpp:57
Definition: RocksPruningFilter.cpp:26
const char * Name() const override
Definition: RocksPruningFilter.cpp:28
Disabled, skip allocation of underlying filter implementation.
Definition: AddressExtractionExtension.cpp:28
RocksPruningFilter(FilterPruningMode pruningMode=FilterPruningMode::Disabled)
Creates rocks pruning filter with optional pruningMode.
Definition: RocksPruningFilter.cpp:72
uint64_t pruningBoundary() const
Definition: RocksPruningFilter.cpp:53
Definition: RocksDatabase.h:29
std::atomic< size_t > m_numRemoved
Definition: RocksPruningFilter.cpp:69
std::atomic< uint64_t > m_compactionBoundary
Definition: RocksPruningFilter.cpp:68
void setPruningBoundary(uint64_t pruningBoundary)
Sets pruning boundary.
Definition: RocksPruningFilter.cpp:91
bool Filter(int, const rocksdb::Slice &key, const rocksdb::Slice &, std::string *, bool *) const override
Definition: RocksPruningFilter.cpp:33