The TokyoTyrantTable class
Introduction
Provides an API to the table databases. A table database can be create using the following command: ttserver -port 1979 /tmp/tt_table.tct. In Tokyo Tyrant the table API is a schemaless database which can store arbitrary amount of key-value pairs under a single primary key.
Class synopsis
TokyoTyrantTable
extends
TokyoTyrant
{
/* Methods */
/* Inherited methods */
public TokyoTyrant TokyoTyrant::connect
( string $host
[, int $port = TokyoTyrant::RDBDEF_PORT
[, array $options
]] )
TokyoTyrant::__construct
([ string $host
[, int $port = TokyoTyrant::RDBDEF_PORT
[, array $options
]]] )
public mixed TokyoTyrant::restore
( string $log_dir
, int $timestamp
[, bool $check_consistency = true
] )
public mixed TokyoTyrant::setMaster
( string $host
, int $port
, int $timestamp
[, bool $check_consistency = true
] )
}Table of Contents
- TokyoTyrantTable::add — Adds a record
- TokyoTyrantTable::genUid — Generate unique id
- TokyoTyrantTable::get — Get a row
- TokyoTyrantTable::getIterator — Get an iterator
- TokyoTyrantTable::getQuery — Get a query object
- TokyoTyrantTable::out — Remove records
- TokyoTyrantTable::put — Store a row
- TokyoTyrantTable::putCat — Concatenates to a row
- TokyoTyrantTable::putKeep — Put a new record
- TokyoTyrantTable::putNr — Puts value
- TokyoTyrantTable::putShl — Concatenates to a record
- TokyoTyrantTable::setIndex — Sets index