]>
git.proxmox.com Git - ceph.git/blob - 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.
6 #include "table/bloom_block.h"
9 #include "rocksdb/slice.h"
10 #include "util/dynamic_bloom.h"
14 void BloomBlockBuilder::AddKeysHashes(const std::vector
<uint32_t>& keys_hashes
) {
15 for (auto hash
: keys_hashes
) {
20 Slice
BloomBlockBuilder::Finish() { return bloom_
.GetRawData(); }
22 const std::string
BloomBlockBuilder::kBloomBlock
= "kBloomBlock";
23 } // namespace rocksdb