]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/table/bloom_block.cc
bump version to 12.1.1-pve1 while rebasing patches
[ceph.git] / ceph / src / rocksdb / table / bloom_block.cc
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.
5
6 #include "table/bloom_block.h"
7
8 #include <string>
9 #include "rocksdb/slice.h"
10 #include "util/dynamic_bloom.h"
11
12 namespace rocksdb {
13
14 void BloomBlockBuilder::AddKeysHashes(const std::vector<uint32_t>& keys_hashes) {
15 for (auto hash : keys_hashes) {
16 bloom_.AddHash(hash);
17 }
18 }
19
20 Slice BloomBlockBuilder::Finish() { return bloom_.GetRawData(); }
21
22 const std::string BloomBlockBuilder::kBloomBlock = "kBloomBlock";
23 } // namespace rocksdb