NAME
RocksDB::WriteBatchHandler - rocksdb::WriteBatchHandler object
SYNOPSIS
use RocksDB;
my $batch = RocksDB::WriteBatch->new;
$batch->put(foo => 'bar');
$batch->delete('bar');
$batch->put_log_data(time());
my $handler = MyWriteBatchHandler->new;
$batch->iterate(RocksDB::WriteBatchHandler->new($handler));
DESCRIPTION
RocksDB::WriteBatchHandler is a rocksdb::WriteBatchHandler object.
CONSTRUCTOR
RocksDB::WriteBatchHandler->new($handler :Object) :RocksDB::WriteBatchHandler
Create and return a new RocksDB::WriteBatchHandler object.
The $handler must respond to 'put', 'merge', 'delete', 'log_data', 'continue'.
See 'HANDLER METHODS' section for more details.
HANDLER METHODS
$handler->put($key :Str, $value :Str) :Undef
$handler->merge($key :Str, $value :Str) :Undef
$handler->delete($key :Str) :Undef
$handler->log_data($blob :Str) :Undef
$handler->continue() :Bool
If it returns false, iteration is halted. Otherwise, it continues iterating.
SEE ALSO
AUTHOR
Jiro Nishiguchi <jiro@cpan.org>