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