downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

TokyoTyrantQuery::key> <TokyoTyrantQuery::current
[edit] Last updated: Fri, 25 May 2012

view this page in

TokyoTyrantQuery::hint

(バージョン情報なし。おそらく SVN 版にしか存在しないでしょう)

TokyoTyrantQuery::hintクエリのヒント文字列を取得する

説明

public string TokyoTyrantQuery::hint ( void )

クエリのヒント文字列を取得します。 ヒント文字列には、実行されたクエリについての情報が含まれています。 たとえば MySQL の EXPLAIN ステートメントのようなものです。

パラメータ

この関数にはパラメータはありません。

返り値

常に文字列を返します。

例1 TokyoTyrantQuery::hint の例

<?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 TokyoTyrantQuery::hint
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites