#include "table/filter_block.h"
#include "leveldb/filter_policy.h"
#include "util/coding.h"
namespace leveldb {
static const size_t kFilterBaseLg = …;
static const size_t kFilterBase = …;
FilterBlockBuilder::FilterBlockBuilder(const FilterPolicy* policy)
: … { … }
void FilterBlockBuilder::StartBlock(uint64_t block_offset) { … }
void FilterBlockBuilder::AddKey(const Slice& key) { … }
Slice FilterBlockBuilder::Finish() { … }
void FilterBlockBuilder::GenerateFilter() { … }
FilterBlockReader::FilterBlockReader(const FilterPolicy* policy,
const Slice& contents)
: … { … }
bool FilterBlockReader::KeyMayMatch(uint64_t block_offset, const Slice& key) { … }
}