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
public class ConstantUntypedNull extends ConstantExpression
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 toConstantUntypedNull
However, optimizers might treat all the nulls equal (e.g. in case of comparison).
-
-
Field Summary
Fields Modifier and Type Field Description static ConstantExpression
INSTANCE
-
Fields inherited from class org.apache.calcite.linq4j.tree.ConstantExpression
value
-
Fields inherited from class org.apache.calcite.linq4j.tree.AbstractNode
nodeType, type
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ConstantUntypedNull()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
accept(ExpressionWriter writer, int lprec, int rprec)
boolean
equals(java.lang.Object o)
int
hashCode()
-
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, accept0, getNodeType, getType, toString
-
-
-
-
Field Detail
-
INSTANCE
public static final ConstantExpression INSTANCE
-
-
Method Detail
-
accept
void accept(ExpressionWriter writer, int lprec, int rprec)
- Overrides:
accept
in classConstantExpression
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classConstantExpression
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classConstantExpression
-
-