static UDTType mapWithUDTKeyAndValue(UDTType keyType, UDTType valueType) { return new UDTType("map<" + keyType.asCQLString() + ", " + valueType.asCQLString() + ">"); }
static UDTType set(UDTType elementType) { return new UDTType("set<" + elementType.asCQLString() + ">"); }
static UDTType list(UDTType elementType) { return new UDTType("list<" + elementType.asCQLString() + ">"); }
static UDTType mapWithUDTKey(UDTType keyType, DataType valueType) { return new UDTType("map<" + keyType.asCQLString() + ", " + valueType + ">"); }
static UDTType mapWithUDTValue(DataType keyType, UDTType valueType) { return new UDTType("map<" + keyType + ", " + valueType.asCQLString() + ">"); }
/** * Define the new type of the altered column, when that type contains a UDT. * * @param udtType the UDT type. Use {@link SchemaBuilder#frozen(String)} or {@link * SchemaBuilder#udtLiteral(String)}. * @return the final statement. */ public SchemaStatement udtType(UDTType udtType) { return SchemaStatement.fromQueryString( alter.buildInternal() + " ALTER " + columnName + " TYPE " + udtType.asCQLString()); } }
/** * Define the type of the added column, when that type contains a UDT. * * @param udtType the UDT type of the added column. * @return the final statement. */ public SchemaStatement udtType(UDTType udtType) { return SchemaStatement.fromQueryString( alter.buildInternal() + " ADD " + columnName + " " + udtType.asCQLString() + (staticColumn ? " static" : "")); } }
static UDTType mapWithUDTValue(DataType keyType, UDTType valueType) { return new UDTType("map<" + keyType + ", " + valueType.asCQLString() + ">"); }
static UDTType set(UDTType elementType) { return new UDTType("set<" + elementType.asCQLString() + ">"); }
static UDTType mapWithUDTKey(UDTType keyType, DataType valueType) { return new UDTType("map<" + keyType.asCQLString() + ", " + valueType + ">"); }
static UDTType set(UDTType elementType) { return new UDTType("set<" + elementType.asCQLString() + ">"); }
static UDTType list(UDTType elementType) { return new UDTType("list<" + elementType.asCQLString() + ">"); }
static UDTType list(UDTType elementType) { return new UDTType("list<" + elementType.asCQLString() + ">"); }
static UDTType mapWithUDTKey(UDTType keyType, DataType valueType) { return new UDTType("map<" + keyType.asCQLString() + ", " + valueType + ">"); }
/** * Define the new type of the altered column, when that type contains a UDT. * * @param udtType the UDT type. Use {@link SchemaBuilder#frozen(String)} or {@link SchemaBuilder#udtLiteral(String)}. * @return the final statement. */ public SchemaStatement udtType(UDTType udtType) { return SchemaStatement.fromQueryString( alter.buildInternal() + " ALTER " + columnName + " TYPE " + udtType.asCQLString()); } }
/** * Define the new type of the altered column, when that type contains a UDT. * * @param udtType the UDT type. Use {@link SchemaBuilder#frozen(String)} or {@link SchemaBuilder#udtLiteral(String)}. * @return the final statement. */ public SchemaStatement udtType(UDTType udtType) { return SchemaStatement.fromQueryString( alter.buildInternal() + " ALTER " + columnName + " TYPE " + udtType.asCQLString()); } }
/** * Define the type of the added column, when that type contains a UDT. * * @param udtType the UDT type of the added column. * @return the final statement. */ public SchemaStatement udtType(UDTType udtType) { return SchemaStatement.fromQueryString( alter.buildInternal() + " ADD " + columnName + " " + udtType.asCQLString() + (staticColumn ? " static" : "")); } }
/** * Define the new type of the altered column, when that type contains a UDT. * * @param udtType the UDT type. Use {@link SchemaBuilder#frozen(String)} or {@link SchemaBuilder#udtLiteral(String)}. * @return the final statement. */ public SchemaStatement udtType(UDTType udtType) { return SchemaStatement.fromQueryString( alter.buildInternal() + " ALTER " + columnName + " TYPE " + udtType.asCQLString()); } }
/** * Define the type of the added column, when that type contains a UDT. * * @param udtType the UDT type of the added column. * @return the final statement. */ public SchemaStatement udtType(UDTType udtType) { return SchemaStatement.fromQueryString( alter.buildInternal() + " ADD " + columnName + " " + udtType.asCQLString() + (staticColumn ? " static" : "")); } }
/** * Define the type of the added column, when that type contains a UDT. * * @param udtType the UDT type of the added column. * @return the final statement. */ public SchemaStatement udtType(UDTType udtType) { return SchemaStatement.fromQueryString( alter.buildInternal() + " ADD " + columnName + " " + udtType.asCQLString() + (staticColumn ? " static" : "")); } }