public class AlterTableColumnsResponse extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.alterTableColumns(AlterTableColumnsRequest)
.Constructor and Description |
---|
AlterTableColumnsResponse()
Constructs an AlterTableColumnsResponse object with default parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
List<Map<String,String>> |
getColumnAlterations() |
Map<String,String> |
getInfo() |
String |
getLabel() |
Map<String,List<String>> |
getProperties() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getTableName() |
String |
getTypeDefinition() |
String |
getTypeId() |
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
AlterTableColumnsResponse |
setColumnAlterations(List<Map<String,String>> columnAlterations) |
AlterTableColumnsResponse |
setInfo(Map<String,String> info) |
AlterTableColumnsResponse |
setLabel(String label) |
AlterTableColumnsResponse |
setProperties(Map<String,List<String>> properties) |
AlterTableColumnsResponse |
setTableName(String tableName) |
AlterTableColumnsResponse |
setTypeDefinition(String typeDefinition) |
AlterTableColumnsResponse |
setTypeId(String typeId) |
String |
toString() |
public AlterTableColumnsResponse()
public static org.apache.avro.Schema getClassSchema()
public String getTableName()
public AlterTableColumnsResponse setTableName(String tableName)
tableName
- Table on which the operation was performed.this
to mimic the builder pattern.public String getTypeId()
public AlterTableColumnsResponse setTypeId(String typeId)
typeId
- return the type_id (when changing a table, a new type may
be created)this
to mimic the builder pattern.public String getTypeDefinition()
public AlterTableColumnsResponse setTypeDefinition(String typeDefinition)
typeDefinition
- return the type_definition (when changing a
table, a new type may be created)this
to mimic the builder pattern.public Map<String,List<String>> getProperties()
public AlterTableColumnsResponse setProperties(Map<String,List<String>> properties)
properties
- return the type properties (when changing a table, a
new type may be created)this
to mimic the builder pattern.public String getLabel()
public AlterTableColumnsResponse setLabel(String label)
label
- return the type label (when changing a table, a new type
may be created)this
to mimic the builder pattern.public List<Map<String,String>> getColumnAlterations()
public AlterTableColumnsResponse setColumnAlterations(List<Map<String,String>> columnAlterations)
columnAlterations
- 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'}
]this
to mimic the builder pattern.public AlterTableColumnsResponse setInfo(Map<String,String> info)
info
- Additional information.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2020. All rights reserved.