RocksDB::BloomFilterPolicy - rocksdb::BloomFilterPolicy object
use RocksDB; my $bits_per_key = 10; my $policy = RocksDB::BloomFilterPolicy->new($bits_per_key); my $db = RocksDB->new('/path/to/db', { filter_policy => $policy });
RocksDB::BloomFilterPolicy is a rocksdb::BloomFilterPolicy object.
RocksDB::BloomFilterPolicy->new($bits_per_key :Int) :RocksDB::BloomFilterPolicy
Return a new filter policy that uses a bloom filter with approximately the specified number of bits per key. A good value for $bits_per_key is 10, which yields a filter with ~ 1% false positive rate.
Note: if you are using a custom comparator that ignores some parts of the keys being compared, you must not use this class and must provide your own FilterPolicy that also ignores the corresponding parts of the keys. For example, if the comparator ignores trailing spaces, it would be incorrect to use a FilterPolicy (like this class) that does not ignore trailing spaces in keys.
RocksDB, RocksDB::FilterPolicy
Jiro Nishiguchi <jiro@cpan.org>
To install RocksDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RocksDB
CPAN shell
perl -MCPAN -e shell install RocksDB
For more information on module installation, please visit the detailed CPAN module installation guide.