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.Constructor Summary
ConstructorsConstructorDescriptionConstructs an AlterTableColumnsResponse object with default parameters.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
getClassSchema
public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.Returns:The schema for the class.setTableName
Table on which the operation was performed.Parameters:tableName- The new value fortableName.Returns:thisto mimic the builder pattern.setTypeId
Return the type_id (when changing a table, a new type may be created).Parameters:typeId- The new value fortypeId.Returns:thisto mimic the builder pattern.setTypeDefinition
Return the type_definition (when changing a table, a new type may be created).Parameters:typeDefinition- The new value fortypeDefinition.Returns:thisto mimic the builder pattern.setLabel
Return the type label (when changing a table, a new type may be created).Parameters:label- The new value forlabel.Returns:thisto mimic the builder pattern.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.setInfo
Additional information.Parameters:info- The new value forinfo.Returns:thisto mimic the builder pattern.getSchema
public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getSchemain interfaceorg.apache.avro.generic.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: