Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://wiki.cs.msu.ru/System/PerlDoc?module=Foswiki::Query::Node
Дата изменения: Unknown Дата индексирования: Mon Apr 11 06:01:07 2016 Кодировка: koi8-r |
internal package
Foswiki::Query::Node internal package
Foswiki::Query::Node is a
Foswiki::Infix::Node A Query object is a representation of a query over the Foswiki database.
Fields are given by name, and values by strings or numbers. Strings should always be surrounded by 'single-quotes'. Numbers can be signed integers or decimals. Single quotes in values may be escaped using backslash (\).
See QuerySearch for details of the query language. At the time of writing only a subset of the entire query language is supported, for use in searching. A query object implements theevaluate
method as its general
contract with the rest of the world. This method does a "hard work" evaluation
of the parser tree. Of course, smarter Store implementations should be
able to do it better....
The "hard work" evaluation uses the getField
method in the
{Store}{QueryAlgorithm} to get data from the store. This decouples the query
object from the detail of the store.
See Foswiki::Store::QueryAlgorithms for a full spec of the interface to
query algorithms.