Package org.apache.calcite.linq4j.tree
Class ConstantUntypedNull
java.lang.Object
org.apache.calcite.linq4j.tree.AbstractNode
org.apache.calcite.linq4j.tree.Expression
org.apache.calcite.linq4j.tree.ConstantExpression
org.apache.calcite.linq4j.tree.ConstantUntypedNull
- All Implemented Interfaces:
Node
Represents a constant null of unknown type
Java allows type inference for such nulls, thus "null" cannot always be
replaced to (Object)null and vise versa.
ConstantExpression(null, Object.class)
is not equal to
ConstantUntypedNull
However, optimizers might treat all the nulls
equal (e.g. in case of comparison).
-
Field Summary
Fields inherited from class org.apache.calcite.linq4j.tree.ConstantExpression
value
Fields inherited from class org.apache.calcite.linq4j.tree.AbstractNode
nodeType, type
-
Method Summary
Methods inherited from class org.apache.calcite.linq4j.tree.ConstantExpression
accept, accept, evaluate
Methods inherited from class org.apache.calcite.linq4j.tree.Expression
canReduce
Methods inherited from class org.apache.calcite.linq4j.tree.AbstractNode
accept, getNodeType, getType, toString
-
Field Details
-
INSTANCE
-
-
Method Details
-
equals
- Overrides:
equals
in classConstantExpression
-
hashCode
public int hashCode()- Overrides:
hashCode
in classConstantExpression
-