public class AlterWalRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.alterWal.
Alters table write-ahead log (WAL) settings. Returns information about the requested table WAL modifications.
| Modifier and Type | Class and Description |
|---|---|
static class |
AlterWalRequest.Options
A set of string constants for the
AlterWalRequest parameter
options. |
| Constructor and 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.
|
| 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> |
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.
|
List<String> |
getTableNames()
List of tables to modify.
|
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.
|
AlterWalRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
AlterWalRequest |
setTableNames(List<String> tableNames)
List of tables to modify.
|
String |
toString() |
public AlterWalRequest()
public AlterWalRequest(List<String> tableNames, Map<String,String> options)
tableNames - List of tables to modify. An asterisk changes the
system settings.options - Optional parameters.
MAX_SEGMENT_SIZE: Maximum size of an individual
segment file
SEGMENT_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
WAL
BACKGROUND:
WAL entries are periodically written
instead of immediately after each
operation
FLUSH: Protects
entries in the event of a database crash
FSYNC: 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: If TRUE each entry will be checked
against a protective checksum.
Supported values:
The default value is TRUE.
OVERRIDE_NON_DEFAULT: If TRUE tables with unique WAL settings will be
overridden when applying a system level change.
Supported values:
The default value is FALSE.
RESTORE_SYSTEM_SETTINGS: If TRUE tables 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 is FALSE.
PERSIST: If TRUE and 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 is TRUE.
Map.public static org.apache.avro.Schema getClassSchema()
public List<String> getTableNames()
tableNames.public AlterWalRequest setTableNames(List<String> tableNames)
tableNames - The new value for tableNames.this to mimic the builder pattern.public Map<String,String> getOptions()
MAX_SEGMENT_SIZE: Maximum size
of an individual segment file
SEGMENT_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 WAL
BACKGROUND: WAL entries are
periodically written instead of immediately after each
operation
FLUSH: Protects entries in the
event of a database crash
FSYNC: 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: If TRUE
each entry will be checked against a protective checksum.
Supported values:
The default value is TRUE.
OVERRIDE_NON_DEFAULT: If
TRUE tables with unique WAL settings will
be overridden when applying a system level change.
Supported values:
The default value is FALSE.
RESTORE_SYSTEM_SETTINGS:
If TRUE tables 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 is FALSE.
PERSIST: If TRUE
and 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 is TRUE.
Map.options.public AlterWalRequest setOptions(Map<String,String> options)
MAX_SEGMENT_SIZE: Maximum size
of an individual segment file
SEGMENT_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 WAL
BACKGROUND: WAL entries are
periodically written instead of immediately after each
operation
FLUSH: Protects entries in the
event of a database crash
FSYNC: 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: If TRUE
each entry will be checked against a protective checksum.
Supported values:
The default value is TRUE.
OVERRIDE_NON_DEFAULT: If
TRUE tables with unique WAL settings will
be overridden when applying a system level change.
Supported values:
The default value is FALSE.
RESTORE_SYSTEM_SETTINGS:
If TRUE tables 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 is FALSE.
PERSIST: If TRUE
and 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 is TRUE.
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.