Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.
The following page has been changed by Army:
http://wiki.apache.org/db-derby/JoinOrderPermutations
------------------------------------------------------------------------------
- costPermutation()
- This page describes the general flow of code as it occurs when a class such as !SelectNode or !TableOperatorNode calls the getNextPermutation() method of an !OptimizerImpl.
+ This page describes the general flow of code as it occurs when a class such as !SelectNode or !TableOperatorNode calls the getNextPermutation() method of an !OptimizerImpl. The expectation is that such a call will occur as part of a block of code similar to the following (copied from !SelectNode.optimize()):
+
+ {{{
+ /* Optimize this SelectNode */
+ while (optimizer.getNextPermutation())
+ {
+ while (optimizer.getNextDecoratedPermutation())
+ {
+ optimizer.costPermutation();
+ }
+ }
+ }}}
== In Short ==