]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/table/block_based/parsed_full_filter_block.cc
update source to Ceph Pacific 16.2.2
[ceph.git] / 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).
5 //
6
7 #include "table/block_based/parsed_full_filter_block.h"
8 #include "rocksdb/filter_policy.h"
9
10 namespace ROCKSDB_NAMESPACE {
11
12 ParsedFullFilterBlock::ParsedFullFilterBlock(const FilterPolicy* filter_policy,
13 BlockContents&& contents)
14 : block_contents_(std::move(contents)),
15 filter_bits_reader_(
16 !block_contents_.data.empty()
17 ? filter_policy->GetFilterBitsReader(block_contents_.data)
18 : nullptr) {}
19
20 ParsedFullFilterBlock::~ParsedFullFilterBlock() = default;
21
22 } // namespace ROCKSDB_NAMESPACE