Jiro Nishiguchi > RocksDB-0.02 > RocksDB::TransactionLogIterator

Download:
RocksDB-0.02.tar.gz

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

RocksDB::TransactionLogIterator - rocksdb::TransactionLogIterator 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) {
      # get RocksDB::BatchResult object
      my $result = $iter->get_batch;
  }

DESCRIPTION ^

RocksDB::TransactionLogIterator is a rocksdb::TransactionLogIterator object.

METHODS ^

$iter->valid() :Bool

An iterator is either positioned at a WriteBatch or not valid. This method returns true if the iterator is valid. Can read data from a valid iterator.

$iter->next() :Undef

Moves the iterator to the next WriteBatch.

$iter->get_batch() :RocksDB::BatchResult

If valid return's the current write_batch and the sequence number of the earliest transaction contained in the batch.

SEE ALSO ^

RocksDB, RocksDB::BatchResult, RocksDB::WriteBatch

AUTHOR ^

Jiro Nishiguchi <jiro@cpan.org>

syntax highlighting: