public class ShowBackupRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.showBackup.
Shows information about one or more backups accessible via the data
source specified by datasourceName.
| Modifier and Type | Class and Description |
|---|---|
static class |
ShowBackupRequest.Options
A set of string constants for the
ShowBackupRequest parameter
options. |
| Constructor and Description |
|---|
ShowBackupRequest()
Constructs a ShowBackupRequest object with default parameters.
|
ShowBackupRequest(String backupName,
String datasourceName,
Map<String,String> options)
Constructs a ShowBackupRequest 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 of the backup.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getDatasourceName()
Data source through which the backup is accessible.
|
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.
|
ShowBackupRequest |
setBackupName(String backupName)
Name of the backup.
|
ShowBackupRequest |
setDatasourceName(String datasourceName)
Data source through which the backup is accessible.
|
ShowBackupRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
String |
toString() |
public ShowBackupRequest()
public ShowBackupRequest(String backupName, String datasourceName, Map<String,String> options)
backupName - Name of the backup. An empty string or '*' will show
all existing backups. Any text followed by a '*' will
show backups whose name starts with that text. The
default value is ''.datasourceName - Data source through which the backup is
accessible.options - Optional parameters.
BACKUP_ID: ID of the
snapshot to show. Leave empty to show
information from the most recent snapshot in the
backup. The default value is ''.
SHOW_CONTENTS:
Show the contents of the backed-up snapshots.
Supported values:
NONE: Don't show
snapshot contents.
OBJECT_NAMES: Show backed-up object
names, and for tables, sizing detail.
OBJECT_FILES: Show backed-up object
names, and for tables, sizing detail and
associated files.
NONE.
NO_ERROR_IF_NOT_EXISTS: Whether or not to
suppress the error if the specified backup does
not exist.
Supported values:
The default value is FALSE.
Map.public static org.apache.avro.Schema getClassSchema()
public String getBackupName()
backupName.public ShowBackupRequest setBackupName(String backupName)
backupName - The new value for backupName.this to mimic the builder pattern.public String getDatasourceName()
datasourceName.public ShowBackupRequest setDatasourceName(String datasourceName)
datasourceName - The new value for datasourceName.this to mimic the builder pattern.public Map<String,String> getOptions()
BACKUP_ID: ID of the snapshot to show.
Leave empty to show information from the most recent snapshot in
the backup. The default value is ''.
SHOW_CONTENTS: Show the contents
of the backed-up snapshots.
Supported values:
NONE: Don't show snapshot contents.
OBJECT_NAMES: Show
backed-up object names, and for tables, sizing detail.
OBJECT_FILES: Show
backed-up object names, and for tables, sizing detail
and associated files.
NONE.
NO_ERROR_IF_NOT_EXISTS:
Whether or not to suppress the error if the specified backup
does not exist.
Supported values:
The default value is FALSE.
Map.options.public ShowBackupRequest setOptions(Map<String,String> options)
BACKUP_ID: ID of the snapshot to show.
Leave empty to show information from the most recent snapshot in
the backup. The default value is ''.
SHOW_CONTENTS: Show the contents
of the backed-up snapshots.
Supported values:
NONE: Don't show snapshot contents.
OBJECT_NAMES: Show
backed-up object names, and for tables, sizing detail.
OBJECT_FILES: Show
backed-up object names, and for tables, sizing detail
and associated files.
NONE.
NO_ERROR_IF_NOT_EXISTS:
Whether or not to suppress the error if the specified backup
does not exist.
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.