PHP Portal » PHP Handbuch » TokyoTyrantQuery::hint

Werbung

TokyoTyrantQuery::hint


()

TokyoTyrantQuery::hintGet the hint string of the query

Beschreibung

public string TokyoTyrantQuery::hint ( void )

Get the hint string of the query. The hint string contains information about an executed query and it could be compared to for example MySQL EXPLAIN statement.

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

This method always returns a string

Beispiele

PHP Code
1
2
3
4
5
6
7
8
9
$tt = new TokyoTyrantTable("localhost", 1979); $tt->vanish(); for ($i = 0; $i < 11; $i++) { $tt->put(null, array('a_col' => 'a' . $i, 'b_col' => 'b' . $i)); } $query = $tt->getQuery(); $query->addCond('a_col', TokyoTyrant::RDBQC_STRBW, 'a'); $query->search(); var_dump($query->hint());

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

string(72) "
scanning the whole table
result set size: 11
leaving the natural order
"

Siehe auch