Package com.gpudb.protocol
Class RestoreBackupResponse
- java.lang.Object
-
- com.gpudb.protocol.RestoreBackupResponse
-
- All Implemented Interfaces:
org.apache.avro.generic.GenericContainer,org.apache.avro.generic.IndexedRecord
public class RestoreBackupResponse extends Object implements org.apache.avro.generic.IndexedRecord
A set of results returned byGPUdb.restoreBackup.
-
-
Constructor Summary
Constructors Constructor Description RestoreBackupResponse()Constructs a RestoreBackupResponse object with default 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.longgetBackupId()ID of the snapshot that was restored.StringgetBackupName()Value ofbackupName.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>getFailedObjects()Database objects that failed to be restored and their associated types.Map<String,String>getInfo()Additional information.Map<String,String>getRenamedObjects()Original and new names of database objects that were successfully restored and their associated types.longgetRestoredBytes()Total size of data restored from backup.longgetRestoredFiles()Total number of files restored from backup.Map<String,String>getRestoredObjects()Database objects that were successfully restored and their associated types.longgetRestoredRecords()Total number of records restored from backup.org.apache.avro.SchemagetSchema()This method supports the Avro framework and is not intended to be called directly by the user.inthashCode()voidput(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.RestoreBackupResponsesetBackupId(long backupId)ID of the snapshot that was restored.RestoreBackupResponsesetBackupName(String backupName)Value ofbackupName.RestoreBackupResponsesetFailedObjects(Map<String,String> failedObjects)Database objects that failed to be restored and their associated types.RestoreBackupResponsesetInfo(Map<String,String> info)Additional information.RestoreBackupResponsesetRenamedObjects(Map<String,String> renamedObjects)Original and new names of database objects that were successfully restored and their associated types.RestoreBackupResponsesetRestoredBytes(long restoredBytes)Total size of data restored from backup.RestoreBackupResponsesetRestoredFiles(long restoredFiles)Total number of files restored from backup.RestoreBackupResponsesetRestoredObjects(Map<String,String> restoredObjects)Database objects that were successfully restored and their associated types.RestoreBackupResponsesetRestoredRecords(long restoredRecords)Total number of records restored from backup.StringtoString()
-
-
-
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.
-
getBackupName
public String getBackupName()
Value ofbackupName.- Returns:
- The current value of
backupName.
-
setBackupName
public RestoreBackupResponse setBackupName(String backupName)
Value ofbackupName.- Parameters:
backupName- The new value forbackupName.- Returns:
thisto mimic the builder pattern.
-
getBackupId
public long getBackupId()
ID of the snapshot that was restored.- Returns:
- The current value of
backupId.
-
setBackupId
public RestoreBackupResponse setBackupId(long backupId)
ID of the snapshot that was restored.- Parameters:
backupId- The new value forbackupId.- Returns:
thisto mimic the builder pattern.
-
getRestoredBytes
public long getRestoredBytes()
Total size of data restored from backup.- Returns:
- The current value of
restoredBytes.
-
setRestoredBytes
public RestoreBackupResponse setRestoredBytes(long restoredBytes)
Total size of data restored from backup.- Parameters:
restoredBytes- The new value forrestoredBytes.- Returns:
thisto mimic the builder pattern.
-
getRestoredFiles
public long getRestoredFiles()
Total number of files restored from backup.- Returns:
- The current value of
restoredFiles.
-
setRestoredFiles
public RestoreBackupResponse setRestoredFiles(long restoredFiles)
Total number of files restored from backup.- Parameters:
restoredFiles- The new value forrestoredFiles.- Returns:
thisto mimic the builder pattern.
-
getRestoredRecords
public long getRestoredRecords()
Total number of records restored from backup.- Returns:
- The current value of
restoredRecords.
-
setRestoredRecords
public RestoreBackupResponse setRestoredRecords(long restoredRecords)
Total number of records restored from backup.- Parameters:
restoredRecords- The new value forrestoredRecords.- Returns:
thisto mimic the builder pattern.
-
getRestoredObjects
public Map<String,String> getRestoredObjects()
Database objects that were successfully restored and their associated types.- Returns:
- The current value of
restoredObjects.
-
setRestoredObjects
public RestoreBackupResponse setRestoredObjects(Map<String,String> restoredObjects)
Database objects that were successfully restored and their associated types.- Parameters:
restoredObjects- The new value forrestoredObjects.- Returns:
thisto mimic the builder pattern.
-
getRenamedObjects
public Map<String,String> getRenamedObjects()
Original and new names of database objects that were successfully restored and their associated types.- Returns:
- The current value of
renamedObjects.
-
setRenamedObjects
public RestoreBackupResponse setRenamedObjects(Map<String,String> renamedObjects)
Original and new names of database objects that were successfully restored and their associated types.- Parameters:
renamedObjects- The new value forrenamedObjects.- Returns:
thisto mimic the builder pattern.
-
getFailedObjects
public Map<String,String> getFailedObjects()
Database objects that failed to be restored and their associated types.- Returns:
- The current value of
failedObjects.
-
setFailedObjects
public RestoreBackupResponse setFailedObjects(Map<String,String> failedObjects)
Database objects that failed to be restored and their associated types.- Parameters:
failedObjects- The new value forfailedObjects.- Returns:
thisto mimic the builder pattern.
-
getInfo
public Map<String,String> getInfo()
Additional information.- Returns:
- The current value of
info.
-
setInfo
public RestoreBackupResponse setInfo(Map<String,String> info)
Additional information.- Parameters:
info- The new value forinfo.- 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
-
-