public class CreateBackupRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.createBackup.
Creates a database backup containing a current snapshot of existing objects.
| 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 object.
|
Map<String,String> |
getBackupObjectsMap()
Map of objects to be captured in the backup.
|
String |
getBackupType()
Type of backup 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()
Datasink where 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 object.
|
CreateBackupRequest |
setBackupObjectsMap(Map<String,String> backupObjectsMap)
Map of objects to be captured in the backup.
|
CreateBackupRequest |
setBackupType(String backupType)
Type of backup to create.
|
CreateBackupRequest |
setDatasinkName(String datasinkName)
Datasink where 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 object. If the backup object
already exists, only an incremental or differential
backup can be made, unless recreate is specifiedbackupType - Type of backup to create.
Supported values:
backupObjectsMap - Map of objects to be captured in the backup.
Error if empty and creating full backup. Error
if non-empty when creating an incremental or
differential backup.
ALL: All
object types in a schema (excludes
permissions, system configuration, host
secret key, KiFS directories and user
defined functions)
TABLE:
Database Table
CREDENTIAL: Credential
CONTEXT: Context
DATASINK: Data Sink
DATASOURCE: Data Source
STORED_PROCEDURE: SQL Procedure
MONITOR: Table Monitor (Stream)
USER:
User (internal and external) and
associated permissions
ROLE:
Role, 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 - Datasink where backup will be stored.options - Optional parameters.
COMMENT: Comments to
store with this backup
CHECKSUM: Calculate
checksum for backup files.
Supported values:
The default value is FALSE.
DDL_ONLY: Only save the
DDL, do not backup table data.
Supported values:
The default value is FALSE.
MAX_INCREMENTAL_BACKUPS_TO_KEEP: Maximum number
of incremental backups to keep. The default
value is '-1'.
DELETE_INTERMEDIATE_BACKUPS: When the backup
type is differential, delete any intermediate
incremental or differential backups. This
overrides MAX_INCREMENTAL_BACKUPS_TO_KEEP.
Supported values:
The default value is FALSE.
RECREATE: Replace the
existing backup object with a new full backup if
it already exists.
Supported values:
The default value is FALSE.
DRY_RUN: Dry run of
backup.
Supported values:
The default value is FALSE.
Map.public static org.apache.avro.Schema getClassSchema()
public String getBackupName()
backupName.public CreateBackupRequest setBackupName(String backupName)
backupName - The new value for backupName.this to mimic the builder pattern.public String getBackupType()
backupType.public CreateBackupRequest setBackupType(String backupType)
backupType - The new value for backupType.this to mimic the builder pattern.public Map<String,String> getBackupObjectsMap()
ALL: All object types in a schema
(excludes permissions, system configuration, host secret key,
KiFS directories and user defined functions)
TABLE: Database Table
CREDENTIAL: Credential
CONTEXT: Context
DATASINK: Data Sink
DATASOURCE: Data Source
STORED_PROCEDURE: SQL
Procedure
MONITOR: Table Monitor (Stream)
USER: User (internal and external)
and associated permissions
ROLE: Role, 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 in a schema
(excludes permissions, system configuration, host secret key,
KiFS directories and user defined functions)
TABLE: Database Table
CREDENTIAL: Credential
CONTEXT: Context
DATASINK: Data Sink
DATASOURCE: Data Source
STORED_PROCEDURE: SQL
Procedure
MONITOR: Table Monitor (Stream)
USER: User (internal and external)
and associated permissions
ROLE: Role, 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: Calculate checksum for backup
files.
Supported values:
The default value is FALSE.
DDL_ONLY: Only save the DDL, do not
backup table data.
Supported values:
The default value is FALSE.
MAX_INCREMENTAL_BACKUPS_TO_KEEP: Maximum number of incremental
backups to keep. The default value is '-1'.
DELETE_INTERMEDIATE_BACKUPS: When the backup type is
differential, delete any intermediate incremental or
differential backups. This overrides MAX_INCREMENTAL_BACKUPS_TO_KEEP.
Supported values:
The default value is FALSE.
RECREATE: Replace the existing backup
object with a new full backup if it already exists.
Supported values:
The default value is FALSE.
DRY_RUN: Dry run of backup.
Supported values:
The default value is FALSE.
Map.options.public CreateBackupRequest setOptions(Map<String,String> options)
COMMENT: Comments to store with this
backup
CHECKSUM: Calculate checksum for backup
files.
Supported values:
The default value is FALSE.
DDL_ONLY: Only save the DDL, do not
backup table data.
Supported values:
The default value is FALSE.
MAX_INCREMENTAL_BACKUPS_TO_KEEP: Maximum number of incremental
backups to keep. The default value is '-1'.
DELETE_INTERMEDIATE_BACKUPS: When the backup type is
differential, delete any intermediate incremental or
differential backups. This overrides MAX_INCREMENTAL_BACKUPS_TO_KEEP.
Supported values:
The default value is FALSE.
RECREATE: Replace the existing backup
object with a new full backup if it already exists.
Supported values:
The default value is FALSE.
DRY_RUN: Dry run of backup.
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.