Package com.gpudb.protocol
Class AlterWalRequest
- java.lang.Object
-
- com.gpudb.protocol.AlterWalRequest
-
- All Implemented Interfaces:
org.apache.avro.generic.GenericContainer,org.apache.avro.generic.IndexedRecord
public class AlterWalRequest extends Object implements org.apache.avro.generic.IndexedRecord
A set of parameters forGPUdb.alterWal.Alters table write-ahead log (WAL) settings. Returns information about the requested table WAL modifications.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAlterWalRequest.OptionsA set of string constants for theAlterWalRequestparameteroptions.
-
Constructor Summary
Constructors Constructor Description AlterWalRequest()Constructs an AlterWalRequest object with default parameters.AlterWalRequest(List<String> tableNames, Map<String,String> options)Constructs an AlterWalRequest object with the specified parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Objectget(int index)This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemagetClassSchema()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.SchemagetSchema()This method supports the Avro framework and is not intended to be called directly by the user.List<String>getTableNames()List of tables to modify.inthashCode()voidput(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.AlterWalRequestsetOptions(Map<String,String> options)Optional parameters.AlterWalRequestsetTableNames(List<String> tableNames)List of tables to modify.StringtoString()
-
-
-
Constructor Detail
-
AlterWalRequest
public AlterWalRequest()
Constructs an AlterWalRequest object with default parameters.
-
AlterWalRequest
public AlterWalRequest(List<String> tableNames, Map<String,String> options)
Constructs an AlterWalRequest object with the specified parameters.- Parameters:
tableNames- List of tables to modify. An asterisk changes the system settings.options- Optional parameters.MAX_SEGMENT_SIZE: Maximum size of an individual segment fileSEGMENT_COUNT: Approximate number of segment files to split the WAL across. Must be at least two.SYNC_POLICY: Maximum size of an individual segment file. Supported values:NONE: Disables the WALBACKGROUND: WAL entries are periodically written instead of immediately after each operationFLUSH: Protects entries in the event of a database crashFSYNC: Protects entries in the event of an OS crash
FLUSH_FREQUENCY: Specifies how frequently WAL entries are written with background sync. This is a global setting and can only be used with the system {options.table_names} specifier '*'.CHECKSUM: IfTRUEeach entry will be checked against a protective checksum. Supported values: The default value isTRUE.OVERRIDE_NON_DEFAULT: IfTRUEtables with unique WAL settings will be overridden when applying a system level change. Supported values: The default value isFALSE.RESTORE_SYSTEM_SETTINGS: IfTRUEtables with unique WAL settings will be reverted to the current global settings. Cannot be used in conjunction with any other option. Supported values: The default value isFALSE.PERSIST: IfTRUEand a system-level change was requested, the system configuration will be written to disk upon successful application of this request. This will commit the changes from this request and any additional in-memory modifications. Supported values: The default value isTRUE.
Map.
-
-
Method Detail
-
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.
-
getTableNames
public List<String> getTableNames()
List of tables to modify. An asterisk changes the system settings.- Returns:
- The current value of
tableNames.
-
setTableNames
public AlterWalRequest setTableNames(List<String> tableNames)
List of tables to modify. An asterisk changes the system settings.- Parameters:
tableNames- The new value fortableNames.- Returns:
thisto mimic the builder pattern.
-
getOptions
public Map<String,String> getOptions()
Optional parameters.MAX_SEGMENT_SIZE: Maximum size of an individual segment fileSEGMENT_COUNT: Approximate number of segment files to split the WAL across. Must be at least two.SYNC_POLICY: Maximum size of an individual segment file. Supported values:NONE: Disables the WALBACKGROUND: WAL entries are periodically written instead of immediately after each operationFLUSH: Protects entries in the event of a database crashFSYNC: Protects entries in the event of an OS crash
FLUSH_FREQUENCY: Specifies how frequently WAL entries are written with background sync. This is a global setting and can only be used with the system {options.table_names} specifier '*'.CHECKSUM: IfTRUEeach entry will be checked against a protective checksum. Supported values: The default value isTRUE.OVERRIDE_NON_DEFAULT: IfTRUEtables with unique WAL settings will be overridden when applying a system level change. Supported values: The default value isFALSE.RESTORE_SYSTEM_SETTINGS: IfTRUEtables with unique WAL settings will be reverted to the current global settings. Cannot be used in conjunction with any other option. Supported values: The default value isFALSE.PERSIST: IfTRUEand a system-level change was requested, the system configuration will be written to disk upon successful application of this request. This will commit the changes from this request and any additional in-memory modifications. Supported values: The default value isTRUE.
Map.- Returns:
- The current value of
options.
-
setOptions
public AlterWalRequest setOptions(Map<String,String> options)
Optional parameters.MAX_SEGMENT_SIZE: Maximum size of an individual segment fileSEGMENT_COUNT: Approximate number of segment files to split the WAL across. Must be at least two.SYNC_POLICY: Maximum size of an individual segment file. Supported values:NONE: Disables the WALBACKGROUND: WAL entries are periodically written instead of immediately after each operationFLUSH: Protects entries in the event of a database crashFSYNC: Protects entries in the event of an OS crash
FLUSH_FREQUENCY: Specifies how frequently WAL entries are written with background sync. This is a global setting and can only be used with the system {options.table_names} specifier '*'.CHECKSUM: IfTRUEeach entry will be checked against a protective checksum. Supported values: The default value isTRUE.OVERRIDE_NON_DEFAULT: IfTRUEtables with unique WAL settings will be overridden when applying a system level change. Supported values: The default value isFALSE.RESTORE_SYSTEM_SETTINGS: IfTRUEtables with unique WAL settings will be reverted to the current global settings. Cannot be used in conjunction with any other option. Supported values: The default value isFALSE.PERSIST: IfTRUEand a system-level change was requested, the system configuration will be written to disk upon successful application of this request. This will commit the changes from this request and any additional in-memory modifications. Supported values: The default value isTRUE.
Map.- Parameters:
options- The new value foroptions.- 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.GenericContainer- Returns:
- The schema object describing this class.
-
get
public Object get(int index)
This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord- Parameters:
index- the position of the field to get- Returns:
- value of the field with the given index.
- Throws:
IndexOutOfBoundsException
-
put
public void put(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord- Parameters:
index- the position of the field to setvalue- the value to set- Throws:
IndexOutOfBoundsException
-
-