TokyoTyrantQuery::hint

(No version information available, might only be in Git)

TokyoTyrantQuery::hintGet the hint string of the query

설명

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.

인수

이 함수는 인수가 없습니다.

반환값

This method always returns a string

예제

Example #1 TokyoTyrantQuery::hint example

<?php
$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());
?>

위 예제의 출력 예시:

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

참고

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top