| Modifier and Type | Field and Description |
|---|---|
| private SequenceDescriptor | |
| private TableName |
| Access | Constructor and Description |
|---|---|
| pack-priv | NextSequenceNode(TableName
The name of the sequence being called sequenceName, ContextManager The context manager cm)Constructor for a NextSequenceNode |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | acceptChildren(Visitor
the visitor v)Overrides org. Accept a visitor on all child nodes. |
| pack-priv ValueNode | Returns: The new top of the expression tree.The FROM list for the query this
expression is in, for binding columns. fromList, SubqueryList The subquery list being built as we find SubqueryNodes subqueryList, List<AggregateNode> The aggregate list being built as we find AggregateNodes aggregates, boolean forQueryRewrite)Overrides org. Bind this expression. |
| pack-priv void | generateConstant(ExpressionClassBuilder
The ExpressionClassBuilder for the class being built ecb, MethodBuilder The method the expression will go into mb)Dummy implementation to return a constant. |
| pack-priv void | generateExpression(ExpressionClassBuilder
The ExpressionClassBuilder for the class being built acb, MethodBuilder The method the expression will go into mb)Overrides org. Generate code for this calculation. |
| pack-priv boolean | isEquivalent(ValueNode
the node to compare this ValueNode against. other)Implements abstract org. Tests if this node is equivalent to the specified ValueNode. |
| public String | Returns: This object as a StringOverrides org. Convert this object to a String. |
| sequenceDescriptor | back to summary |
|---|---|
| private SequenceDescriptor sequenceDescriptor | |
| sequenceName | back to summary |
|---|---|
| private TableName sequenceName | |
| NextSequenceNode | back to summary |
|---|---|
| pack-priv NextSequenceNode(TableName sequenceName, ContextManager cm) Constructor for a NextSequenceNode
| |
| acceptChildren | back to summary |
|---|---|
| pack-priv void acceptChildren(Visitor v) throws StandardException Overrides org. Doc from org. Accept a visitor on all child nodes. All sub-classes that add fields
that should be visited, should override this method and call
| |
| bindExpression | back to summary |
|---|---|
| pack-priv ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, List<AggregateNode> aggregates, boolean forQueryRewrite) throws StandardException Overrides org. Bind this expression. This means binding the sub-expressions, as well as figuring out what the return type is for this expression.
| |
| generateConstant | back to summary |
|---|---|
| pack-priv void generateConstant(ExpressionClassBuilder ecb, MethodBuilder mb) throws StandardException Dummy implementation to return a constant. Will be replaced with actual NEXT VALUE logic.
| |
| generateExpression | back to summary |
|---|---|
| pack-priv void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException Overrides org. Doc from org. Generate code for this calculation. This is a place-holder method - it should not be called.
| |
| isEquivalent | back to summary |
|---|---|
| pack-priv boolean isEquivalent(ValueNode other) throws StandardException 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:
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing. | |