TokyoTyrantTable::getIterator

(No version information available, might only be in Git)
Get an iterator
public TokyoTyrantIterator TokyoTyrantTable::getIterator ( void )

Gets an iterator for iterating all keys / values in the database.

Returns:

This method returns TokyoTyrantIterator object and throws TokyoTyrantException on failure.

Examples:
TokyoTyrantTable::getIterator() example
<?php
$tt = new TokyoTyrantTable("localhost");
$it = $tt->getIterator();

foreach ($it as $k => $v) {
  var_dump($k, $v);
}
?>

See also:

TokyoTyrantTable::getQuery() -

TokyoTyrant::getIterator() -

doc_php
2016-02-24 16:18:51
Comments
Leave a Comment

Please login to continue.