You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by Apache Wiki <wi...@apache.org> on 2006/11/07 23:49:46 UTC

[Db-derby Wiki] Trivial Update of "JoinOrderPermutations" by Army

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 ==