Class Equalizer

  extended by isql.Equalizer

public class Equalizer
extends java.lang.Object

The parts of an expression or the expression itself can be either arrays or constants, This is a problem, because to calculate the expression we need a set of array of the same size. To do that we need to know the size of all the arrays involved (which must be the same for all) and build arrays from the constants (with all the same values) with the same size of the other arrays. The idea here is to use futures that get values when the equalize method is called

SHZ Sep 28, 2007

Nested Class Summary
static interface Equalizer.IArrayFuture
          Get the array, when it is ready (after the method equalize has been called)
Constructor Summary
Method Summary
 Equalizer.IArrayFuture add(ITypedValue value)
          Add a new expression.
 void equalize()
          Calculates the size of the constant arrays based on the size of the other arrays
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public Equalizer()
Method Detail


public Equalizer.IArrayFuture add(ITypedValue value)
Add a new expression.

value -
the future value of the expression. The idea is that you cannot access the real value of the expression until the equalize method is called.


public void equalize()
              throws ISQLException
Calculates the size of the constant arrays based on the size of the other arrays