public class AlterTableMetadataRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.alterTableMetadata(AlterTableMetadataRequest).
Updates (adds or changes) metadata for tables. The metadata key and values must both be strings. This is an easy way to annotate whole tables rather than single records within tables. Some examples of metadata are owner of the table, table creation timestamp etc.
| 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, or an error will be
returned.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. The default value is an empty
Map.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, or an error will be
returned.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 Map<String,String> getOptions()
Map.public AlterTableMetadataRequest setOptions(Map<String,String> options)
options - Optional parameters. The default value is an empty
Map.this to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainerpublic Object get(int index)
get in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to getIndexOutOfBoundsExceptionpublic void put(int index,
Object value)
put in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to setvalue - the value to setIndexOutOfBoundsExceptionCopyright © 2020. All rights reserved.