From (query directive)
From WandoraWiki
(Difference between revisions)
Line 14: | Line 14: | ||
You may also give the from method, not the directive constructor, one or more strings. In this case a Literals directive will be implicitly created from the strings. A.from("b","c","d") resolves to new From(A,new Literals("b","c","d")). | You may also give the from method, not the directive constructor, one or more strings. In this case a Literals directive will be implicitly created from the strings. A.from("b","c","d") resolves to new From(A,new Literals("b","c","d")). | ||
+ | |||
+ | [[Category:Query directives]] |
Revision as of 09:44, 20 August 2009
Description
Takes the results from one directive and feeds them one row at a time to another combining all results.
Constructor
From(Directive to,Directive from)
Notes
This directive is best used using the from method present in every directive. Calling A.from(B) will resolve to new From(A,B).
The from method, but not the directive constructor, can be given several directives. In this case they will be joined using the Join directive. A.from(B,C) will resolve to new From(A,new Join(B,C)).
You may also give the from method, not the directive constructor, one or more strings. In this case a Literals directive will be implicitly created from the strings. A.from("b","c","d") resolves to new From(A,new Literals("b","c","d")).