Add BloomFilter to PlainTableIterator::Seek()

Summary:
This patch adds a simple bloom filter in PlainTableIterator::Seek()

Test Plan: N/A

Reviewers:

CC:

Task ID: #

Blame Rev:
This commit is contained in:
Siying Dong
2013-11-21 15:13:45 -08:00
parent b135d01e7b
commit 718488abc5
6 changed files with 71 additions and 16 deletions

View File

@@ -242,7 +242,7 @@ int main(int argc, char** argv) {
if (FLAGS_plain_table) {
options.allow_mmap_reads = true;
env_options.use_mmap_reads = true;
tf = new rocksdb::PlainTableFactory(16, FLAGS_prefix_len);
tf = new rocksdb::PlainTableFactory(16, FLAGS_prefix_len, FLAGS_prefix_len);
} else {
tf = new rocksdb::BlockBasedTableFactory();
}