public class CreateBackupRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.createBackup.
Creates a database backup, containing a snapshot of existing objects, at the
remote file store accessible via the data sink
specified by datasinkName.
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateBackupRequest.BackupObjectsMap
A set of string constants for the
CreateBackupRequest parameter
backupObjectsMap. |
static class |
CreateBackupRequest.BackupType
A set of string constants for the
CreateBackupRequest parameter
backupType. |
static class |
CreateBackupRequest.Options
A set of string constants for the
CreateBackupRequest parameter
options. |
| Constructor and Description |
|---|
CreateBackupRequest()
Constructs a CreateBackupRequest object with default parameters.
|
CreateBackupRequest(String backupName,
String backupType,
Map<String,String> backupObjectsMap,
String datasinkName,
Map<String,String> options)
Constructs a CreateBackupRequest 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 |
getBackupName()
Name for this backup.
|
Map<String,String> |
getBackupObjectsMap()
Map of objects to be captured in the backup; must be specified when
creating a full snapshot and left unspecified when creating an
incremental or differential snapshot.
|
String |
getBackupType()
Type of snapshot to create.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getDatasinkName()
Data sink through which the backup will be stored.
|
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.
|
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.
|
CreateBackupRequest |
setBackupName(String backupName)
Name for this backup.
|
CreateBackupRequest |
setBackupObjectsMap(Map<String,String> backupObjectsMap)
Map of objects to be captured in the backup; must be specified when
creating a full snapshot and left unspecified when creating an
incremental or differential snapshot.
|
CreateBackupRequest |
setBackupType(String backupType)
Type of snapshot to create.
|
CreateBackupRequest |
setDatasinkName(String datasinkName)
Data sink through which the backup will be stored.
|
CreateBackupRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
String |
toString() |
public CreateBackupRequest()
public CreateBackupRequest(String backupName, String backupType, Map<String,String> backupObjectsMap, String datasinkName, Map<String,String> options)
backupName - Name for this backup. If the backup already exists,
only an incremental or differential backup can be
made, unless RECREATE is set
to TRUE.backupType - Type of snapshot to create.
Supported values:
INCREMENTAL:
Snapshot of changes in the database objects &
data since the last snapshot of any kind.
DIFFERENTIAL:
Snapshot of changes in the database objects &
data since the last full snapshot.
FULL: Snapshot of the
given database objects and data.
backupObjectsMap - Map of objects to be captured in the backup;
must be specified when creating a full snapshot
and left unspecified when creating an
incremental or differential snapshot.
ALL: All
object types and data contained in the
given schemas(s).
TABLE:
Tables(s) and SQL view(s).
CREDENTIAL: Credential(s).
CONTEXT: Context(s).
DATASINK: Data sink(s).
DATASOURCE: Data source(s).
STORED_PROCEDURE: SQL procedure(s).
MONITOR: Table monitor(s) / SQL stream(s).
USER: User(s) (internal and
external) and associated permissions.
ROLE: Role(s), role members
(roles or users, recursively), and
associated permissions.
CONFIGURATION: If TRUE, backup the
database configuration file.
Supported values:
The default value is FALSE.
datasinkName - Data sink through which the backup will be stored.options - Optional parameters.
COMMENT: Comments to
store with this backup.
CHECKSUM: Whether or
not to calculate checksums for backup files.
Supported values:
The default value is FALSE.
DDL_ONLY: Whether or
not, for tables, to only backup DDL and not
table data.
Supported values:
The default value is FALSE.
MAX_INCREMENTAL_BACKUPS_TO_KEEP: Maximum number
of incremental snapshots to keep. The default
value is '-1'.
DELETE_INTERMEDIATE_BACKUPS: Whether or not to
delete any intermediate snapshots when the
backupType is set to DIFFERENTIAL.
Supported values:
The default value is FALSE.
RECREATE: Whether or
not to replace an existing backup object with a
new backup with a full snapshot, if one already
exists.
Supported values:
The default value is FALSE.
DRY_RUN: Whether or not
to perform a dry run of a backup operation.
Supported values:
The default value is FALSE.
Map.public static org.apache.avro.Schema getClassSchema()
public String getBackupName()
RECREATE is set to TRUE.backupName.public CreateBackupRequest setBackupName(String backupName)
RECREATE is set to TRUE.backupName - The new value for backupName.this to mimic the builder pattern.public String getBackupType()
INCREMENTAL: Snapshot of changes
in the database objects & data since the last snapshot of any
kind.
DIFFERENTIAL: Snapshot of
changes in the database objects & data since the last full
snapshot.
FULL: Snapshot of the given database
objects and data.
backupType.public CreateBackupRequest setBackupType(String backupType)
INCREMENTAL: Snapshot of changes
in the database objects & data since the last snapshot of any
kind.
DIFFERENTIAL: Snapshot of
changes in the database objects & data since the last full
snapshot.
FULL: Snapshot of the given database
objects and data.
backupType - The new value for backupType.this to mimic the builder pattern.public Map<String,String> getBackupObjectsMap()
ALL: All object types and data
contained in the given schemas(s).
TABLE: Tables(s) and SQL
view(s).
CREDENTIAL: Credential(s).
CONTEXT: Context(s).
DATASINK: Data
sink(s).
DATASOURCE: Data source(s).
STORED_PROCEDURE: SQL
procedure(s).
MONITOR: Table monitor(s) / SQL stream(s).
USER: User(s) (internal and external) and associated
permissions.
ROLE: Role(s), role members (roles or users,
recursively), and associated permissions.
CONFIGURATION: If TRUE, backup the database configuration
file.
Supported values:
The default value is FALSE.
backupObjectsMap.public CreateBackupRequest setBackupObjectsMap(Map<String,String> backupObjectsMap)
ALL: All object types and data
contained in the given schemas(s).
TABLE: Tables(s) and SQL
view(s).
CREDENTIAL: Credential(s).
CONTEXT: Context(s).
DATASINK: Data
sink(s).
DATASOURCE: Data source(s).
STORED_PROCEDURE: SQL
procedure(s).
MONITOR: Table monitor(s) / SQL stream(s).
USER: User(s) (internal and external) and associated
permissions.
ROLE: Role(s), role members (roles or users,
recursively), and associated permissions.
CONFIGURATION: If TRUE, backup the database configuration
file.
Supported values:
The default value is FALSE.
backupObjectsMap - The new value for backupObjectsMap.this to mimic the builder pattern.public String getDatasinkName()
datasinkName.public CreateBackupRequest setDatasinkName(String datasinkName)
datasinkName - The new value for datasinkName.this to mimic the builder pattern.public Map<String,String> getOptions()
COMMENT: Comments to store with this
backup.
CHECKSUM: Whether or not to calculate
checksums for backup files.
Supported values:
The default value is FALSE.
DDL_ONLY: Whether or not, for tables,
to only backup DDL and not table data.
Supported values:
The default value is FALSE.
MAX_INCREMENTAL_BACKUPS_TO_KEEP: Maximum number of incremental
snapshots to keep. The default value is '-1'.
DELETE_INTERMEDIATE_BACKUPS: Whether or not to delete any
intermediate snapshots when the backupType is set to DIFFERENTIAL.
Supported values:
The default value is FALSE.
RECREATE: Whether or not to replace an
existing backup object with a new backup with a full snapshot,
if one already exists.
Supported values:
The default value is FALSE.
DRY_RUN: Whether or not to perform a dry
run of a backup operation.
Supported values:
The default value is FALSE.
Map.options.public CreateBackupRequest setOptions(Map<String,String> options)
COMMENT: Comments to store with this
backup.
CHECKSUM: Whether or not to calculate
checksums for backup files.
Supported values:
The default value is FALSE.
DDL_ONLY: Whether or not, for tables,
to only backup DDL and not table data.
Supported values:
The default value is FALSE.
MAX_INCREMENTAL_BACKUPS_TO_KEEP: Maximum number of incremental
snapshots to keep. The default value is '-1'.
DELETE_INTERMEDIATE_BACKUPS: Whether or not to delete any
intermediate snapshots when the backupType is set to DIFFERENTIAL.
Supported values:
The default value is FALSE.
RECREATE: Whether or not to replace an
existing backup object with a new backup with a full snapshot,
if one already exists.
Supported values:
The default value is FALSE.
DRY_RUN: Whether or not to perform a dry
run of a backup operation.
Supported values:
The default value is FALSE.
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.