isql
Class Equalizer
java.lang.Object
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
- Author:
- 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) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Equalizer
public Equalizer()
add
public Equalizer.IArrayFuture add(ITypedValue value)
- Add a new expression.
- Parameters:
value
-
- Returns:
- 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.
equalize
public void equalize()
throws ISQLException
- Calculates the size of the constant arrays based on the size
of the other arrays
- Throws:
ISQLException