Package com.gpudb.protocol
Class CreateBackupResponse
java.lang.Object
com.gpudb.protocol.CreateBackupResponse
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of results returned by
GPUdb.createBackup.Constructor Summary
ConstructorsConstructorDescriptionConstructs a CreateBackupResponse 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 created.Value ofbackupName.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.longTotal size of all files copied for this snapshot.longTotal number of files copied for this snapshot.longTotal number of records in all files copied for this snapshot.getInfo()Additional information.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.longTotal number of records that can be restored from this snapshot.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 created.setBackupName(String backupName) Value ofbackupName.setCopiedBytes(long copiedBytes) Total size of all files copied for this snapshot.setCopiedFiles(long copiedFiles) Total number of files copied for this snapshot.setCopiedRecords(long copiedRecords) Total number of records in all files copied for this snapshot.Additional information.setTotalNumberOfRecords(long totalNumberOfRecords) Total number of records that can be restored from this snapshot.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 created.Returns:The current value ofbackupId.setBackupId
ID of the snapshot created.Parameters:backupId- The new value forbackupId.Returns:thisto mimic the builder pattern.getCopiedBytes
public long getCopiedBytes()Total size of all files copied for this snapshot.Returns:The current value ofcopiedBytes.setCopiedBytes
Total size of all files copied for this snapshot.Parameters:copiedBytes- The new value forcopiedBytes.Returns:thisto mimic the builder pattern.getCopiedFiles
public long getCopiedFiles()Total number of files copied for this snapshot.Returns:The current value ofcopiedFiles.setCopiedFiles
Total number of files copied for this snapshot.Parameters:copiedFiles- The new value forcopiedFiles.Returns:thisto mimic the builder pattern.getCopiedRecords
public long getCopiedRecords()Total number of records in all files copied for this snapshot.Returns:The current value ofcopiedRecords.setCopiedRecords
Total number of records in all files copied for this snapshot.Parameters:copiedRecords- The new value forcopiedRecords.Returns:thisto mimic the builder pattern.getTotalNumberOfRecords
public long getTotalNumberOfRecords()Total number of records that can be restored from this snapshot.Returns:The current value oftotalNumberOfRecords.setTotalNumberOfRecords
Total number of records that can be restored from this snapshot.Parameters:totalNumberOfRecords- The new value fortotalNumberOfRecords.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: