/** * Creates a MapSqlType. This constructor should only be called * from a factory method. */ public MapSqlType( RelDataType keyType, RelDataType valueType, boolean isNullable) { super(SqlTypeName.MAP, isNullable, null); assert keyType != null; assert valueType != null; this.keyType = keyType; this.valueType = valueType; computeDigest(); }
public RelDataType createMapType( RelDataType keyType, RelDataType valueType) { MapSqlType newType = new MapSqlType(keyType, valueType, false); return canonize(newType); }
for (Map.Entry<Object, Object> entry : map.entrySet()) { operands.add( makeLiteral(entry.getKey(), mapType.getKeyType(), allowCast)); operands.add( makeLiteral(entry.getValue(), mapType.getValueType(), allowCast));
public RelDataType createMapType( RelDataType keyType, RelDataType valueType) { MapSqlType newType = new MapSqlType(keyType, valueType, false); return canonize(newType); }
/** * Creates a MapSqlType. This constructor should only be called * from a factory method. */ public MapSqlType( RelDataType keyType, RelDataType valueType, boolean isNullable) { super(SqlTypeName.MAP, isNullable, null); assert keyType != null; assert valueType != null; this.keyType = keyType; this.valueType = valueType; computeDigest(); }