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.Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theRestoreBackupResponseparameterinfo.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
setBackupName
Value ofbackupName.Parameters:backupName- The new value forbackupName.Returns:thisto mimic the builder pattern.getInfo
Additional information.CLEAN_DROPPED_OBJECTS: IfRESTORE_POLICYisCLEANorCLEAN_ALL, the objects the clean dropped before restoring, grouped by type, e.g. ‘table: s.a, s.b; user: u1; schema: s’. WhenDRY_RUNisTRUE, the objects it would drop. A long list ends with the number of objects left out.CLEAN_KEPT_OBJECTS: IfRESTORE_POLICYisCLEANorCLEAN_ALL, comma-separated list of objects in the backup that the clean kept on the target, such as the calling user, and that the restore therefore left as they were instead of restoring them, e.g. user ‘u1’, directory ‘~u1’.
Map.Returns:The current value ofinfo.setInfo
Additional information.CLEAN_DROPPED_OBJECTS: IfRESTORE_POLICYisCLEANorCLEAN_ALL, the objects the clean dropped before restoring, grouped by type, e.g. ‘table: s.a, s.b; user: u1; schema: s’. WhenDRY_RUNisTRUE, the objects it would drop. A long list ends with the number of objects left out.CLEAN_KEPT_OBJECTS: IfRESTORE_POLICYisCLEANorCLEAN_ALL, comma-separated list of objects in the backup that the clean kept on the target, such as the calling user, and that the restore therefore left as they were instead of restoring them, e.g. user ‘u1’, directory ‘~u1’.
Map.Parameters:info- The new value forinfo.Returns:thisto mimic the builder pattern.