public class AlterTableRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.alterTable(AlterTableRequest)
.
GPUdb.getRecordsRaw(GetRecordsRequest)
, GPUdb.deleteRecords(DeleteRecordsRequest)
, GPUdb.updateRecordsRaw(RawUpdateRecordsRequest)
) when
using expressions containing equality or relational operators on indexed columns. This only applies to child tables.
GPUdb.clearTable(ClearTableRequest)
to delete the table. This can be applied to child tables or collections or
views.
Modifier and Type | Class and Description |
---|---|
static class |
AlterTableRequest.Action
Modification operation to be applied to the table or collection Values: create_index, delete_index, allow_homogeneous_tables,
protected, ttl.
|
Constructor and Description |
---|
AlterTableRequest()
Constructs an AlterTableRequest object with default parameters.
|
AlterTableRequest(String tableName,
String action,
String value,
Map<String,String> options)
Constructs an AlterTableRequest 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() |
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() |
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 |
getValue() |
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.
|
AlterTableRequest |
setAction(String action) |
AlterTableRequest |
setOptions(Map<String,String> options) |
AlterTableRequest |
setTableName(String tableName) |
AlterTableRequest |
setValue(String value) |
String |
toString() |
public AlterTableRequest()
public AlterTableRequest(String tableName, String action, String value, Map<String,String> options)
tableName
- Table on which the operation will be performed. Must be a valid table or collection in GPUdb.action
- Modification operation to be applied to the table or collection Values: create_index, delete_index,
allow_homogeneous_tables, protected, ttl.value
- The value of the modification. May be a column name, 'true' or 'false', or a time-to-live depending on action
.options
- Optional parameters.public static org.apache.avro.Schema getClassSchema()
public String getTableName()
public AlterTableRequest setTableName(String tableName)
tableName
- Table on which the operation will be performed. Must be a valid table or collection in GPUdb.this
to mimic the builder pattern.public String getAction()
public AlterTableRequest setAction(String action)
action
- Modification operation to be applied to the table or collection Values: create_index, delete_index,
allow_homogeneous_tables, protected, ttl.this
to mimic the builder pattern.public String getValue()
action
.public AlterTableRequest setValue(String value)
value
- The value of the modification. May be a column name, 'true' or 'false', or a time-to-live depending on action
.this
to mimic the builder pattern.public AlterTableRequest 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.