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