]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/table/block_based/parsed_full_filter_block.cc
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under both the GPLv2 (found in the
3 // COPYING file in the root directory) and Apache 2.0 License
4 // (found in the LICENSE.Apache file in the root directory).
7 #include "table/block_based/parsed_full_filter_block.h"
8 #include "rocksdb/filter_policy.h"
10 namespace ROCKSDB_NAMESPACE
{
12 ParsedFullFilterBlock::ParsedFullFilterBlock(const FilterPolicy
* filter_policy
,
13 BlockContents
&& contents
)
14 : block_contents_(std::move(contents
)),
16 !block_contents_
.data
.empty()
17 ? filter_policy
->GetFilterBitsReader(block_contents_
.data
)
20 ParsedFullFilterBlock::~ParsedFullFilterBlock() = default;
22 } // namespace ROCKSDB_NAMESPACE