// Copyright (c) 2012 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "leveldb/filter_policy.h" #include "leveldb/slice.h" #include "util/hash.h" namespace leveldb { namespace { static uint32_t BloomHash(const Slice& key) { … } class BloomFilterPolicy : public FilterPolicy { … }; } // namespace const FilterPolicy* NewBloomFilterPolicy(int bits_per_key) { … } } // namespace leveldb