RocksDB::Comparator - rocksdb::Comparator object
use RocksDB; my $handler = MyComparator->new; my $db = RocksDB->new('/path/to/db', { create_if_missing => 1, comparator => RocksDB::Comparator->new($handler), });
RocksDB::Comparator is a utility class to make rocksdb::Comparator object.
RocksDB::Comparator->new($handler :Object) :RocksDB::Comparator
Create and return a new RocksDB::Comparator object.
$handler must respond to "compare".
See 'HANDLER METHODS' section for more details.
$handler->compare($a :Str, $b :Str) :Int
Three-way comparison. Returns value:
< 0 iff $a < $b, == 0 iff $a == $b, > 0 iff $a > $b
RocksDB
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.