![]() |
Quadcap Embeddable Database |
Inheritance diagram for com.quadcap.sql.AggregateExpression:

Definition at line 69 of file AggregateExpression.java.
Public Member Functions | |
| AggregateExpression () | |
| Default constructor. | |
| AggregateExpression (int op, boolean all, Expression expr) | |
| Explicit constructor. | |
| void | reset (Session session) throws IOException |
| int | rank () |
| Returns zero if this is a scalar expression, one if it's a vector type and 2 if it's a table/cursor type. | |
| Type | getType (Session session, Cursor cursor) throws SQLException |
| Return the expression's type if known. | |
| Value | getValue (Session session, Cursor cursor) throws SQLException |
| If this is a scalar, return its value. | |
| void | updateAggregate (Session session, Cursor cursor) throws SQLException |
| void | invert () |
| Negate the logical value of the expression. | |
| String | toString () |
| void | visitSubExpressions (ExpressionVisitor ev) |
| Give a visitor access to the parse tree. | |
| void | readExternal (ObjectInput in) throws IOException, ClassNotFoundException |
| void | writeExternal (ObjectOutput out) throws IOException |
Static Public Attributes | |
| final int | AVG = 0 |
| final int | SUM = 1 |
| final int | MIN = 2 |
| final int | MAX = 3 |
| final int | COUNT = 4 |
Package Functions | |
| Expression | getInnerExpression () |
| boolean | isMin () |
| boolean | isMax () |
| boolean | isCount () |
| AggregateSessionState | getSessionState (Session session) |
| AggregateSessionState | getSessionState (Session session, boolean mk) |
Static Package Functions | |
| String | toString (int op) |
Package Attributes | |
| int | op = -1 |
| boolean | all = false |
| Expression | expr = null |
Static Package Attributes | |
| String[] | ops = {"AVG","SUM","MIN","MAX","COUNT"} |
| final byte[] | aByte = { 0 } |
|
|
Default constructor.
Definition at line 97 of file AggregateExpression.java. |
|
||||||||||||||||
|
Explicit constructor.
Definition at line 102 of file AggregateExpression.java. |
|
|
Definition at line 108 of file AggregateExpression.java. References com.quadcap.sql.AggregateExpression.expr. Referenced by com.quadcap.sql.SelectExpression.optimizeAggregate(). |
|
||||||||||||
|
Definition at line 162 of file AggregateExpression.java. References com.quadcap.sql.Session.getContext(), and com.quadcap.sql.Session.putContext(). |
|
|
Definition at line 158 of file AggregateExpression.java. References com.quadcap.sql.AggregateExpression.getSessionState(). Referenced by com.quadcap.sql.AggregateExpression.getSessionState(), and com.quadcap.sql.AggregateExpression.reset(). |
|
||||||||||||
|
Return the expression's type if known.
Implements com.quadcap.sql.Expression. Definition at line 174 of file AggregateExpression.java. References com.quadcap.sql.AggregateExpression.COUNT, com.quadcap.sql.AggregateExpression.expr, com.quadcap.sql.Expression.getType(), com.quadcap.sql.AggregateExpression.getType(), and com.quadcap.sql.AggregateExpression.op. Referenced by com.quadcap.sql.AggregateExpression.getType(). |
|
||||||||||||
|
If this is a scalar, return its value.
Reimplemented from com.quadcap.sql.Expression. Definition at line 185 of file AggregateExpression.java. References com.quadcap.sql.AggregateExpression.AggregateSessionState.accum, com.quadcap.sql.AggregateExpression.AVG, com.quadcap.sql.AggregateExpression.COUNT, com.quadcap.sql.AggregateExpression.AggregateSessionState.count, com.quadcap.sql.AggregateExpression.getValue(), com.quadcap.sql.AggregateExpression.MAX, com.quadcap.sql.AggregateExpression.MIN, com.quadcap.sql.AggregateExpression.op, and com.quadcap.sql.AggregateExpression.SUM. Referenced by com.quadcap.sql.AggregateExpression.getValue(). |
|
|
Negate the logical value of the expression.
Reimplemented from com.quadcap.sql.Expression. Definition at line 272 of file AggregateExpression.java. |
|
|
Definition at line 114 of file AggregateExpression.java. References com.quadcap.sql.AggregateExpression.COUNT, and com.quadcap.sql.AggregateExpression.op. Referenced by com.quadcap.sql.SelectExpression.optimizeAggregate(). |
|
|
Definition at line 113 of file AggregateExpression.java. References com.quadcap.sql.AggregateExpression.MAX, and com.quadcap.sql.AggregateExpression.op. Referenced by com.quadcap.sql.SelectExpression.optimizeAggregate(). |
|
|
Definition at line 112 of file AggregateExpression.java. References com.quadcap.sql.AggregateExpression.MIN, and com.quadcap.sql.AggregateExpression.op. Referenced by com.quadcap.sql.SelectExpression.optimizeAggregate(). |
|
|
Returns zero if this is a scalar expression, one if it's a vector type and 2 if it's a table/cursor type.
Implements com.quadcap.sql.Expression. Definition at line 172 of file AggregateExpression.java. |
|
|
Definition at line 287 of file AggregateExpression.java. References com.quadcap.sql.AggregateExpression.all, com.quadcap.sql.AggregateExpression.expr, com.quadcap.sql.AggregateExpression.op, and com.quadcap.sql.AggregateExpression.readExternal(). Referenced by com.quadcap.sql.AggregateExpression.readExternal(). |
|
|
Definition at line 153 of file AggregateExpression.java. References com.quadcap.sql.AggregateExpression.getSessionState(), com.quadcap.sql.AggregateExpression.AggregateSessionState.reset(), and com.quadcap.sql.AggregateExpression.reset(). Referenced by com.quadcap.sql.AggregateExpression.reset(). |
|
|
Implements com.quadcap.sql.Expression. Definition at line 275 of file AggregateExpression.java. References com.quadcap.sql.AggregateExpression.all, com.quadcap.sql.AggregateExpression.expr, and com.quadcap.sql.AggregateExpression.op. |
|
|
Definition at line 84 of file AggregateExpression.java. References com.quadcap.sql.AggregateExpression.ops. |
|
||||||||||||
|
|
Give a visitor access to the parse tree.
Reimplemented from com.quadcap.sql.Expression. Definition at line 283 of file AggregateExpression.java. References com.quadcap.sql.AggregateExpression.expr, com.quadcap.sql.ExpressionVisitor.visit(), and com.quadcap.sql.AggregateExpression.visitSubExpressions(). Referenced by com.quadcap.sql.AggregateExpression.visitSubExpressions(). |
|
|
Definition at line 295 of file AggregateExpression.java. References com.quadcap.sql.AggregateExpression.all, com.quadcap.sql.AggregateExpression.expr, com.quadcap.sql.AggregateExpression.op, and com.quadcap.sql.AggregateExpression.writeExternal(). Referenced by com.quadcap.sql.AggregateExpression.writeExternal(). |
|
|
Definition at line 92 of file AggregateExpression.java. Referenced by com.quadcap.sql.AggregateExpression.updateAggregate(). |
|
|
|
Definition at line 72 of file AggregateExpression.java. Referenced by com.quadcap.sql.AggregateExpression.getValue(), and com.quadcap.sql.AggregateExpression.updateAggregate(). |
|
|
Definition at line 76 of file AggregateExpression.java. Referenced by com.quadcap.sql.AggregateExpression.getType(), com.quadcap.sql.AggregateExpression.getValue(), com.quadcap.sql.AggregateExpression.isCount(), and com.quadcap.sql.AggregateExpression.updateAggregate(). |
|
|
|
Definition at line 75 of file AggregateExpression.java. Referenced by com.quadcap.sql.AggregateExpression.getValue(), com.quadcap.sql.AggregateExpression.isMax(), and com.quadcap.sql.AggregateExpression.updateAggregate(). |
|
|
Definition at line 74 of file AggregateExpression.java. Referenced by com.quadcap.sql.AggregateExpression.getValue(), com.quadcap.sql.AggregateExpression.isMin(), and com.quadcap.sql.AggregateExpression.updateAggregate(). |
|
|
|
Definition at line 82 of file AggregateExpression.java. Referenced by com.quadcap.sql.AggregateExpression.toString(). |
|
|
Definition at line 73 of file AggregateExpression.java. Referenced by com.quadcap.sql.AggregateExpression.getValue(), and com.quadcap.sql.AggregateExpression.updateAggregate(). |