Package com.gpudb.protocol
Class AlterTableMonitorRequest
java.lang.Object
com.gpudb.protocol.AlterTableMonitorRequest
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordpublic class AlterTableMonitorRequest extends Object implements org.apache.avro.generic.IndexedRecord
A set of parameters for
GPUdb.alterTableMonitor.
Alters a table monitor previously created with GPUdb.createTableMonitor.
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theAlterTableMonitorRequestparametermonitorUpdatesMap.Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Map containing the properties of the table monitor to be updated.Optional parameters.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.The topic ID returned byGPUdb.createTableMonitor.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setMonitorUpdatesMap(Map<String, String> monitorUpdatesMap) Map containing the properties of the table monitor to be updated.setOptions(Map<String, String> options) Optional parameters.setTopicId(String topicId) The topic ID returned byGPUdb.createTableMonitor.toString()
Constructor Details
AlterTableMonitorRequest
public AlterTableMonitorRequest()Constructs an AlterTableMonitorRequest object with default parameters.AlterTableMonitorRequest
public AlterTableMonitorRequest(String topicId, Map<String, String> monitorUpdatesMap, Map<String, String> options) Constructs an AlterTableMonitorRequest object with the specified parameters.Parameters:topicId- The topic ID returned byGPUdb.createTableMonitor.monitorUpdatesMap- Map containing the properties of the table monitor to be updated. Error if empty.SCHEMA_NAME: Updates the schema name. IfSCHEMA_NAMEdoesn’t exist, an error will be thrown. IfSCHEMA_NAMEis empty, then the user’s default schema will be used.MAX_CONSECUTIVE_FAILURES: Updates the maximum number of consecutive failures before suspending the stream. A value of ‘-1’ to disables auto-suspend. This value is by rank and not overall.NOTIFICATIONS: Updates the state of the monitor. Supported values:The default value is an emptyMap.
options- Optional parameters. The default value is an emptyMap.
Method Details
getClassSchema
public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.Returns:The schema for the class.setTopicId
The topic ID returned byGPUdb.createTableMonitor.Parameters:topicId- The new value fortopicId.Returns:thisto mimic the builder pattern.getMonitorUpdatesMap
Map containing the properties of the table monitor to be updated. Error if empty.SCHEMA_NAME: Updates the schema name. IfSCHEMA_NAMEdoesn’t exist, an error will be thrown. IfSCHEMA_NAMEis empty, then the user’s default schema will be used.MAX_CONSECUTIVE_FAILURES: Updates the maximum number of consecutive failures before suspending the stream. A value of ‘-1’ to disables auto-suspend. This value is by rank and not overall.NOTIFICATIONS: Updates the state of the monitor. Supported values:The default value is an emptyMap.
Returns:The current value ofmonitorUpdatesMap.setMonitorUpdatesMap
Map containing the properties of the table monitor to be updated. Error if empty.SCHEMA_NAME: Updates the schema name. IfSCHEMA_NAMEdoesn’t exist, an error will be thrown. IfSCHEMA_NAMEis empty, then the user’s default schema will be used.MAX_CONSECUTIVE_FAILURES: Updates the maximum number of consecutive failures before suspending the stream. A value of ‘-1’ to disables auto-suspend. This value is by rank and not overall.NOTIFICATIONS: Updates the state of the monitor. Supported values:The default value is an emptyMap.
Parameters:monitorUpdatesMap- The new value formonitorUpdatesMap.Returns:thisto mimic the builder pattern.getSchema
public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getSchemain interfaceorg.apache.avro.generic.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: