| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ValueNode | Returns: The new top of the expression tree.The FROM list for the statement. This parameter
is not used in this case. fromList, SubqueryList The subquery list being built as we find SubqueryNodes subqueryList, List<AggregateNode> The aggregate list being built as we find AggregateNodes aggregates)Overrides org. Binding this expression means setting the result DataTypeServices. |
| pack-priv void | generateExpression(ExpressionClassBuilder
The ExpressionClassBuilder for the class being built acb, MethodBuilder The method the expression will go into mbex)Overrides org. CurrentRowLocationNode is used in updates and deletes. |
| pack-priv boolean | isEquivalent(ValueNode
the node to compare this ValueNode against. o)Implements abstract org. Tests if this node is equivalent to the specified ValueNode. |
| CurrentRowLocationNode | back to summary |
|---|---|
| pack-priv CurrentRowLocationNode(ContextManager cm) | |
| bindExpression | back to summary |
|---|---|
| pack-priv ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, List<AggregateNode> aggregates) throws StandardException Overrides org. Binding this expression means setting the result DataTypeServices. In this case, the result type is always the same.
| |
| generateExpression | back to summary |
|---|---|
| pack-priv void generateExpression(ExpressionClassBuilder acb, MethodBuilder mbex) throws StandardException Overrides org. CurrentRowLocationNode is used in updates and deletes. See generate() in
UpdateNode and DeleteNode to get the full overview of generate(). This
class is responsible for generating the method that will return the RowLocation
for the next row to be updated or deleted.
This routine will generate a method of the form:
private SQLRef fieldx;
...
protected DataValueDescriptor exprx()
throws StandardException
{
return fieldx = The ExpressionClassBuilder for the class being built
Doc from org. The method the expression will go into
| |
| isEquivalent | back to summary |
|---|---|
| pack-priv boolean isEquivalent(ValueNode o) Implements abstract org. Doc from org. Tests if this node is equivalent to the specified ValueNode. Two ValueNodes are considered equivalent if they will evaluate to the same value during query execution. This method provides basic expression matching facility for the derived class of ValueNode and it is used by the language layer to compare the node structural form of the two expressions for equivalence at bind phase. Note that it is not comparing the actual row values at runtime to produce a result; hence, when comparing SQL NULLs, they are considered to be equivalent and not unknown. One usage case of this method in this context is to compare the select column expression against the group by expression to check if they are equivalent. e.g.: SELECT c1+c2 FROM t1 GROUP BY c1+c2 In general, node equivalence is determined by the derived class of ValueNode. But they generally abide to the rules below:
| |