Package com.gpudb.protocol
Class AlterTableColumnsResponse
java.lang.Object
com.gpudb.protocol.AlterTableColumnsResponse
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordpublic class AlterTableColumnsResponse extends Object implements org.apache.avro.generic.IndexedRecord
A set of results returned by
GPUdb.alterTableColumns.Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.List of alter table add/delete/change column requests - all for the same table.getInfo()Additional information.getLabel()Return the type label (when changing a table, a new type may be created).Return the type properties (when changing a table, a new type may be created).org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Table on which the operation was performed.Return the type_definition (when changing a table, a new type may be created).Return the type_id (when changing a table, a new type may be created).inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setColumnAlterations(List<Map<String, String>> columnAlterations) List of alter table add/delete/change column requests - all for the same table.Additional information.Return the type label (when changing a table, a new type may be created).setProperties(Map<String, List<String>> properties) Return the type properties (when changing a table, a new type may be created).setTableName(String tableName) Table on which the operation was performed.setTypeDefinition(String typeDefinition) Return the type_definition (when changing a table, a new type may be created).Return the type_id (when changing a table, a new type may be created).toString()
Method Details
getColumnAlterations
List of alter table add/delete/change column requests - all for the same table. Each request is a map that includes ‘column_name’, ‘action’ and the options specific for the action. Note that the same options as in alter table requests but in the same map as the column name and the action. For example: [‘column_name’:‘col_1’,‘action’:‘change_column’,‘rename_column’:‘col_2’,‘column_name’:‘col_1’,‘action’:‘add_column’, ‘type’:‘int’,‘default_value’:‘1’].Returns:The current value ofcolumnAlterations.setColumnAlterations
List of alter table add/delete/change column requests - all for the same table. Each request is a map that includes ‘column_name’, ‘action’ and the options specific for the action. Note that the same options as in alter table requests but in the same map as the column name and the action. For example: [‘column_name’:‘col_1’,‘action’:‘change_column’,‘rename_column’:‘col_2’,‘column_name’:‘col_1’,‘action’:‘add_column’, ‘type’:‘int’,‘default_value’:‘1’].Parameters:columnAlterations- The new value forcolumnAlterations.Returns:thisto mimic the builder pattern.