/** * Shorthand to add a column definition to this CREATE statement, when the type is a set of UDT. * * @param columnName the name of the column to be added * @param udtType the udt type of the column to be added. Use {@link * SchemaBuilder#frozen(String)}. * @return this CREATE statement. */ public T addUDTSetColumn(String columnName, UDTType udtType) { validateNotEmpty(columnName, "Column name"); validateNotNull(udtType, "Column element type"); validateNotKeyWord( columnName, String.format( "The column name '%s' is not allowed because it is a reserved keyword", columnName)); simpleColumns.put(columnName, UDTType.set(udtType)); return self; }
/** * Shorthand to add a column definition to this CREATE statement, when the type is a set of UDT. * * @param columnName the name of the column to be added * @param udtType the udt type of the column to be added. Use {@link SchemaBuilder#frozen(String)}. * @return this CREATE statement. */ public T addUDTSetColumn(String columnName, UDTType udtType) { validateNotEmpty(columnName, "Column name"); validateNotNull(udtType, "Column element type"); validateNotKeyWord(columnName, String.format("The column name '%s' is not allowed because it is a reserved keyword", columnName)); simpleColumns.put(columnName, UDTType.set(udtType)); return self; }
/** * Shorthand to add a column definition to this CREATE statement, when the type is a set of UDT. * * @param columnName the name of the column to be added * @param udtType the udt type of the column to be added. Use {@link SchemaBuilder#frozen(String)}. * @return this CREATE statement. */ public T addUDTSetColumn(String columnName, UDTType udtType) { validateNotEmpty(columnName, "Column name"); validateNotNull(udtType, "Column element type"); validateNotKeyWord(columnName, String.format("The column name '%s' is not allowed because it is a reserved keyword", columnName)); simpleColumns.put(columnName, UDTType.set(udtType)); return self; }
/** * Shorthand to add a column definition to this CREATE statement, when the type is a set of UDT. * * @param columnName the name of the column to be added * @param udtType the udt type of the column to be added. Use {@link SchemaBuilder#frozen(String)}. * @return this CREATE statement. */ public T addUDTSetColumn(String columnName, UDTType udtType) { validateNotEmpty(columnName, "Column name"); validateNotNull(udtType, "Column element type"); validateNotKeyWord(columnName, String.format("The column name '%s' is not allowed because it is a reserved keyword", columnName)); simpleColumns.put(columnName, UDTType.set(udtType)); return self; }