public class AlterSchemaRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.alterSchema.
Used to change the name of a SQL-style schema,
specified in schemaName.
| Modifier and Type | Class and Description |
|---|---|
static class |
AlterSchemaRequest.Action
A set of string constants for the
AlterSchemaRequest parameter
action. |
| Constructor and Description |
|---|
AlterSchemaRequest()
Constructs an AlterSchemaRequest object with default parameters.
|
AlterSchemaRequest(String schemaName,
String action,
String value,
Map<String,String> options)
Constructs an AlterSchemaRequest 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.
|
String |
getAction()
Modification operation to be applied.
|
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> |
getOptions()
Optional parameters.
|
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getSchemaName()
Name of the schema to be altered.
|
String |
getValue()
The value of the modification, depending on
action. |
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.
|
AlterSchemaRequest |
setAction(String action)
Modification operation to be applied.
|
AlterSchemaRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
AlterSchemaRequest |
setSchemaName(String schemaName)
Name of the schema to be altered.
|
AlterSchemaRequest |
setValue(String value)
The value of the modification, depending on
action. |
String |
toString() |
public AlterSchemaRequest()
public AlterSchemaRequest(String schemaName, String action, String value, Map<String,String> options)
schemaName - Name of the schema to be altered.action - Modification operation to be applied.
Supported values:
ADD_COMMENT: Adds a
comment describing the schema
RENAME_SCHEMA:
Renames a schema to value. Has the same
naming restrictions as tables.
value - The value of the modification, depending on action. For now the only value of action is
RENAME_SCHEMA. In this case
the value is the new name of the schema.options - Optional parameters. The default value is an empty
Map.public static org.apache.avro.Schema getClassSchema()
public String getSchemaName()
schemaName.public AlterSchemaRequest setSchemaName(String schemaName)
schemaName - The new value for schemaName.this to mimic the builder pattern.public String getAction()
ADD_COMMENT: Adds a comment
describing the schema
RENAME_SCHEMA: Renames a schema to
value. Has the same naming restrictions as
tables.
action.public AlterSchemaRequest setAction(String action)
ADD_COMMENT: Adds a comment
describing the schema
RENAME_SCHEMA: Renames a schema to
value. Has the same naming restrictions as
tables.
action - The new value for action.this to mimic the builder pattern.public String getValue()
action.
For now the only value of action is RENAME_SCHEMA. In this case the value is the new
name of the schema.value.public AlterSchemaRequest setValue(String value)
action.
For now the only value of action is RENAME_SCHEMA. In this case the value is the new
name of the schema.value - The new value for value.this to mimic the builder pattern.public Map<String,String> getOptions()
Map.options.public AlterSchemaRequest setOptions(Map<String,String> options)
Map.options - The new value for options.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 © 2025. All rights reserved.