| Modifier and Type | Field and Description |
|---|---|
| pack-priv ValueNodeList | |
| private int | firstNonParameterNodeIdx
The generated method will generate code to call coalesce on this non-parameter argument. |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| pack-priv | CoalesceFunctionNode(String
Tells if the function was called with name COALESCE or with name VALUE functionName, ValueNodeList The list of arguments to the coalesce/value function argumentsList, ContextManager The context manager cm)Constructor for a CoalesceFunctionNode |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | acceptChildren(Visitor
the visitor v)Overrides org. Accept the visitor for all visitable children of this node. |
| pack-priv ValueNode | Returns: The new top of the expression tree.The FROM list for the statement. 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. |
| public boolean | categorize(JBitSet
JBitSet with bit map of referenced FromTables referencedTabs, boolean Whether or not to consider method
calls, field references and conditional nodes
when building bit map simplePredsOnly)Overrides org. Categorize this predicate. |
| pack-priv void | generateExpression(ExpressionClassBuilder
The ExpressionClassBuilder for the class we're generating acb, MethodBuilder The method the expression will go into mb)Overrides org. Do code generation for coalesce/value |
| 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. |
| pack-priv ValueNode | Returns: The modified expressionNumber of tables in the DML Statement numTables, FromList FromList from outer query block outerFromList, SubqueryList SubqueryList from outer query block outerSubqueryList, PredicateList PredicateList from outer query block outerPredicateList)Overrides org. Preprocess an expression tree. |
| pack-priv void | printSubNodes(int
The depth of this node in the tree depth)Overrides org. Prints the sub-nodes of this object. |
| public ValueNode | Returns: the remapped treeOverrides org. Remap all the |
| public String | toString()
Overrides org. Convert this object to a String. |
| argumentsList | back to summary |
|---|---|
| pack-priv ValueNodeList argumentsList | |
| firstNonParameterNodeIdx | back to summary |
|---|---|
| private int firstNonParameterNodeIdx The generated method will generate code to call coalesce on this non-parameter argument. | |
| functionName | back to summary |
|---|---|
| pack-priv String functionName | |
| CoalesceFunctionNode | back to summary |
|---|---|
| pack-priv CoalesceFunctionNode(String functionName, ValueNodeList argumentsList, ContextManager cm) Constructor for a CoalesceFunctionNode
| |
| acceptChildren | back to summary |
|---|---|
| pack-priv void acceptChildren(Visitor v) throws StandardException Overrides org. Accept the visitor for all visitable children of this node.
| |
| 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 based on the rules in the table listed earlier.
| |
| categorize | back to summary |
|---|---|
| public boolean categorize(JBitSet referencedTabs, boolean simplePredsOnly) throws StandardException Overrides org. Categorize this predicate.
| |
| generateExpression | back to summary |
|---|---|
| pack-priv void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException Overrides org. Do code generation for coalesce/value
| |
| isEquivalent | back to summary |
|---|---|
| pack-priv boolean isEquivalent(ValueNode o) 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:
| |
| preprocess | back to summary |
|---|---|
| pack-priv ValueNode preprocess(int numTables, FromList outerFromList, SubqueryList outerSubqueryList, PredicateList outerPredicateList) throws StandardException Overrides org. Preprocess an expression tree. We do a number of transformations here (including subqueries, IN lists, LIKE and BETWEEN) plus subquery flattening. Note This is done before the outer ResultSetNode is preprocessed.
| |
| printSubNodes | back to summary |
|---|---|
| pack-priv void printSubNodes(int depth) Overrides org. Prints the sub-nodes of this object. See QueryTreeNode.java for how tree printing is supposed to work.
| |
| remapColumnReferencesToExpressions | back to summary |
|---|---|
| public ValueNode remapColumnReferencesToExpressions() throws StandardException Overrides org. Remap all the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from org. Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing. | |