/** * Creates a <code>RexLiteral</code>. */ RexLiteral( Comparable value, RelDataType type, SqlTypeName typeName) { assert type != null; assert value == null || valueMatchesType(value, typeName, true); assert (value == null) == type.isNullable(); this.value = value; this.type = type; this.typeName = typeName; this.digest = toJavaString(value, typeName); }
/** * Creates a <code>RexLiteral</code>. */ RexLiteral( Comparable value, RelDataType type, SqlTypeName typeName) { assert type != null; assert value == null || valueMatchesType(value, typeName, true); assert (value == null) == type.isNullable(); assert typeName != SqlTypeName.ANY; this.value = value; this.type = type; this.typeName = typeName; this.digest = toJavaString(value, typeName); }