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.IndexedRecordA set of results returned by
GPUdb.restoreBackup.Constructor Summary
ConstructorsConstructorDescriptionConstructs a RestoreBackupResponse object with default parameters.Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.longID of the snapshot that was restored.Value ofbackupName.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Database objects that failed to be restored and their associated types.getInfo()Additional information.Original and new names of database objects that were successfully restored and their associated types.longTotal size of data restored from backup.longTotal number of files restored from backup.Database objects that were successfully restored and their associated types.longTotal number of records restored from backup.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setBackupId(long backupId) ID of the snapshot that was restored.setBackupName(String backupName) Value ofbackupName.setFailedObjects(Map<String, String> failedObjects) Database objects that failed to be restored and their associated types.Additional information.setRenamedObjects(Map<String, String> renamedObjects) Original and new names of database objects that were successfully restored and their associated types.setRestoredBytes(long restoredBytes) Total size of data restored from backup.setRestoredFiles(long restoredFiles) Total number of files restored from backup.setRestoredObjects(Map<String, String> restoredObjects) Database objects that were successfully restored and their associated types.setRestoredRecords(long restoredRecords) Total number of records restored from backup.toString()
Method Details
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.setBackupName
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 ofbackupId.setBackupId
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 ofrestoredBytes.setRestoredBytes
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 ofrestoredFiles.setRestoredFiles
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 ofrestoredRecords.setRestoredRecords
Total number of records restored from backup.Parameters:restoredRecords- The new value forrestoredRecords.Returns:thisto mimic the builder pattern.setRestoredObjects
Database objects that were successfully restored and their associated types.Parameters:restoredObjects- The new value forrestoredObjects.Returns:thisto mimic the builder pattern.setRenamedObjects
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.setFailedObjects
Database objects that failed to be restored and their associated types.Parameters:failedObjects- The new value forfailedObjects.Returns:thisto mimic the builder pattern.setInfo
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.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: