public class AlterTableMetadataRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.alterTableMetadata(AlterTableMetadataRequest)
.
Constructor and Description |
---|
AlterTableMetadataRequest()
Constructs an AlterTableMetadataRequest object with default parameters.
|
AlterTableMetadataRequest(List<String> tableNames,
Map<String,String> metadataMap,
Map<String,String> options)
Constructs an AlterTableMetadataRequest object with the specified 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.
|
Map<String,String> |
getMetadataMap() |
Map<String,String> |
getOptions() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called directly by the user.
|
List<String> |
getTableNames() |
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.
|
AlterTableMetadataRequest |
setMetadataMap(Map<String,String> metadataMap) |
AlterTableMetadataRequest |
setOptions(Map<String,String> options) |
AlterTableMetadataRequest |
setTableNames(List<String> tableNames) |
String |
toString() |
public AlterTableMetadataRequest()
public AlterTableMetadataRequest(List<String> tableNames, Map<String,String> metadataMap, Map<String,String> options)
tableNames
- Names of the tables whose metadata will be updated. All specified tables must exist in GPUdb, or GPUdb
will return an error.metadataMap
- A map which contains the metadata of the tables that are to be updated. Note that only one map is
provided for all the tables; so the change will be applied to every table. If the provided map is empty,
then all existing metadata for the table(s) will be cleared.options
- Optional parameters.public static org.apache.avro.Schema getClassSchema()
public List<String> getTableNames()
public AlterTableMetadataRequest setTableNames(List<String> tableNames)
tableNames
- Names of the tables whose metadata will be updated. All specified tables must exist in GPUdb, or GPUdb
will return an error.this
to mimic the builder pattern.public Map<String,String> getMetadataMap()
public AlterTableMetadataRequest setMetadataMap(Map<String,String> metadataMap)
metadataMap
- A map which contains the metadata of the tables that are to be updated. Note that only one map is
provided for all the tables; so the change will be applied to every table. If the provided map is empty,
then all existing metadata for the table(s) will be cleared.this
to mimic the builder pattern.public AlterTableMetadataRequest setOptions(Map<String,String> options)
options
- Optional parameters.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 © 2016. All rights reserved.