Jiro Nishiguchi > RocksDB-0.02 > RocksDB::BatchResult

Download:
RocksDB-0.02.tar.gz

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

RocksDB::BatchResult - rocksdb::BatchResult object

SYNOPSIS ^

  use RocksDB;

  my $db = RocksDB->new('/path/to/db');
  my $pos = 0;
  for (my $iter = $db->get_updates_since($pos); $iter->valid; $iter->next) {
      my $result = $iter->get_batch;
      # get sequence
      my $sequence = $result->sequence;
      # get RocksDB::WriteBatch object
      my $batch = $result->write_batch;
  }

DESCRIPTION ^

RocksDB::BatchResult is a rocksdb::BatchResult object.

METHODS ^

$result->sequence() :Int

Returns a SequenceNumber.

$result->write_batch() :RocksDB::WriteBatch

Returns a RocksDB::WriteBatch object.

SEE ALSO ^

RocksDB, RocksDB::WriteBatch, RocksDB::TransactionLogIterator

AUTHOR ^

Jiro Nishiguchi <jiro@cpan.org>

syntax highlighting: