| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Member | field
The field we are going to access. |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv | StaticClassFieldReferenceNode(String
The class name javaClassName, String The field name fieldName, boolean classNameDelimitedIdentifier, ContextManager The context manager cm)Constructor for a StaticClassFieldReferenceNode |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv JavaValueNode | Returns: NothingThe 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)Implements abstract org. Bind this expression. |
| pack-priv boolean | Returns: boolean Whether or not source.expression is a ColumnReference or a VirtualColumnNode.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)Implements abstract org. Categorize this predicate. |
| pack-priv void | generateExpression(ExpressionClassBuilder
The ExpressionClassBuilder for the class being built acb, MethodBuilder the method the expression will go into mb)Implements abstract org. General logic shared by Core compilation and by the Replication Filter compiler. |
| pack-priv int | Returns: The variant type for the underlying expression.Overrides org. Return the variant type for the underlying expression. |
| pack-priv void | preprocess(int
Number 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)Implements abstract org. Preprocess an expression tree. |
| pack-priv JavaValueNode | Returns: JavaValueNode The remapped expression tree.Implements abstract org. Remap all ColumnReferences in this tree to be clones of the underlying expression. |
| classNameDelimitedIdentifier | back to summary |
|---|---|
| private boolean classNameDelimitedIdentifier | |
| field | back to summary |
|---|---|
| private Member field The field we are going to access. | |
| fieldName | back to summary |
|---|---|
| private String fieldName | |
| javaClassName | back to summary |
|---|---|
| private String javaClassName | |
| StaticClassFieldReferenceNode | back to summary |
|---|---|
| pack-priv StaticClassFieldReferenceNode(String javaClassName, String fieldName, boolean classNameDelimitedIdentifier, ContextManager cm) Constructor for a StaticClassFieldReferenceNode
| |
| bindExpression | back to summary |
|---|---|
| pack-priv JavaValueNode bindExpression(FromList fromList, SubqueryList subqueryList, List<AggregateNode> aggregates) throws StandardException Implements abstract org. Bind this expression. This means binding the sub-expressions, as well as figuring out what the return type is for this expression.
| |
| categorize | back to summary |
|---|---|
| pack-priv boolean categorize(JBitSet referencedTabs, boolean simplePredsOnly) Implements abstract org. Categorize this predicate. Initially, this means building a bit map of the referenced tables for each predicate. If the source of this ColumnReference (at the next underlying level) is not a ColumnReference or a VirtualColumnNode then this predicate will not be pushed down. For example, in: select * from (select 1 from s) a (x) where x = 1 we will not push down x = 1. Note It would be easy to handle the case of a constant, but if the inner SELECT returns an arbitrary expression, then we would have to copy that tree into the pushed predicate, and that tree could contain subqueries and method calls. RESOLVE - revisit this issue once we have views.
| |
| generateExpression | back to summary |
|---|---|
| pack-priv void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException Implements abstract org. Doc from org. General logic shared by Core compilation and by the Replication Filter compiler. Every child of ValueNode must implement one of these methods.
| |
| getOrderableVariantType | back to summary |
|---|---|
| pack-priv int getOrderableVariantType() Overrides org. Return the variant type for the underlying expression. The variant type can be: VARIANT - variant within a scan (method calls and non-static field access) SCAN_INVARIANT - invariant within a scan (column references from outer tables) QUERY_INVARIANT - invariant within the life of a query CONSTANT - constant
| |
| preprocess | back to summary |
|---|---|
| pack-priv void preprocess(int numTables, FromList outerFromList, SubqueryList outerSubqueryList, PredicateList outerPredicateList) throws StandardException Implements abstract 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.
| |
| remapColumnReferencesToExpressions | back to summary |
|---|---|
| pack-priv JavaValueNode remapColumnReferencesToExpressions() throws StandardException Implements abstract org. Remap all ColumnReferences in this tree to be clones of the underlying expression.
| |