Package com.gpudb.protocol
Class AdminVerifyDbRequest
- java.lang.Object
-
- com.gpudb.protocol.AdminVerifyDbRequest
-
- All Implemented Interfaces:
org.apache.avro.generic.GenericContainer,org.apache.avro.generic.IndexedRecord
public class AdminVerifyDbRequest extends Object implements org.apache.avro.generic.IndexedRecord
A set of parameters forGPUdb.adminVerifyDb.Verify database is in a consistent state. When inconsistencies or errors are found, the verified_ok flag in the response is set to false and the list of errors found is provided in the error_list.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAdminVerifyDbRequest.OptionsA set of string constants for theAdminVerifyDbRequestparameteroptions.
-
Constructor Summary
Constructors Constructor Description AdminVerifyDbRequest()Constructs an AdminVerifyDbRequest object with default parameters.AdminVerifyDbRequest(Map<String,String> options)Constructs an AdminVerifyDbRequest object with the specified 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.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>getOptions()Optional parameters.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.AdminVerifyDbRequestsetOptions(Map<String,String> options)Optional parameters.StringtoString()
-
-
-
Constructor Detail
-
AdminVerifyDbRequest
public AdminVerifyDbRequest()
Constructs an AdminVerifyDbRequest object with default parameters.
-
AdminVerifyDbRequest
public AdminVerifyDbRequest(Map<String,String> options)
Constructs an AdminVerifyDbRequest object with the specified parameters.- Parameters:
options- Optional parameters.REBUILD_ON_ERROR: [DEPRECATED -- Use the Rebuild DB feature of GAdmin instead.]. Supported values: The default value isFALSE.VERIFY_NULLS: WhenTRUE, verifies that null values are set to zero. Supported values: The default value isFALSE.VERIFY_PERSIST: WhenTRUE, persistent objects will be compared against their state in memory and workers will be checked for orphaned table data in persist. To check for orphaned worker data, either setCONCURRENT_SAFEinoptionstoTRUEor place the database offline. Supported values: The default value isFALSE.CONCURRENT_SAFE: WhenTRUE, allows this endpoint to be run safely with other concurrent database operations. Other operations may be slower while this is running. Supported values: The default value isTRUE.VERIFY_RANK0: IfTRUE, compare rank0 table metadata against workers' metadata. Supported values: The default value isFALSE.DELETE_ORPHANED_TABLES: IfTRUE, orphaned table directories found on workers for which there is no corresponding metadata will be deleted. It is recommended to run this while the database is offline OR setCONCURRENT_SAFEinoptionstoTRUE. Supported values: The default value isFALSE.VERIFY_ORPHANED_TABLES_ONLY: IfTRUE, only the presence of orphaned table directories will be checked, all persistence and table consistency checks will be skipped. Supported values: The default value isFALSE.TABLE_INCLUDES: Comma-separated list of table names to include when verifying table consistency on wokers. Cannot be used simultaneously withTABLE_EXCLUDES.TABLE_EXCLUDES: Comma-separated list of table names to exclude when verifying table consistency on wokers. Cannot be used simultaneously withTABLE_INCLUDES.
Map.
-
-
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.
-
getOptions
public Map<String,String> getOptions()
Optional parameters.REBUILD_ON_ERROR: [DEPRECATED -- Use the Rebuild DB feature of GAdmin instead.]. Supported values: The default value isFALSE.VERIFY_NULLS: WhenTRUE, verifies that null values are set to zero. Supported values: The default value isFALSE.VERIFY_PERSIST: WhenTRUE, persistent objects will be compared against their state in memory and workers will be checked for orphaned table data in persist. To check for orphaned worker data, either setCONCURRENT_SAFEinoptionstoTRUEor place the database offline. Supported values: The default value isFALSE.CONCURRENT_SAFE: WhenTRUE, allows this endpoint to be run safely with other concurrent database operations. Other operations may be slower while this is running. Supported values: The default value isTRUE.VERIFY_RANK0: IfTRUE, compare rank0 table metadata against workers' metadata. Supported values: The default value isFALSE.DELETE_ORPHANED_TABLES: IfTRUE, orphaned table directories found on workers for which there is no corresponding metadata will be deleted. It is recommended to run this while the database is offline OR setCONCURRENT_SAFEinoptionstoTRUE. Supported values: The default value isFALSE.VERIFY_ORPHANED_TABLES_ONLY: IfTRUE, only the presence of orphaned table directories will be checked, all persistence and table consistency checks will be skipped. Supported values: The default value isFALSE.TABLE_INCLUDES: Comma-separated list of table names to include when verifying table consistency on wokers. Cannot be used simultaneously withTABLE_EXCLUDES.TABLE_EXCLUDES: Comma-separated list of table names to exclude when verifying table consistency on wokers. Cannot be used simultaneously withTABLE_INCLUDES.
Map.- Returns:
- The current value of
options.
-
setOptions
public AdminVerifyDbRequest setOptions(Map<String,String> options)
Optional parameters.REBUILD_ON_ERROR: [DEPRECATED -- Use the Rebuild DB feature of GAdmin instead.]. Supported values: The default value isFALSE.VERIFY_NULLS: WhenTRUE, verifies that null values are set to zero. Supported values: The default value isFALSE.VERIFY_PERSIST: WhenTRUE, persistent objects will be compared against their state in memory and workers will be checked for orphaned table data in persist. To check for orphaned worker data, either setCONCURRENT_SAFEinoptionstoTRUEor place the database offline. Supported values: The default value isFALSE.CONCURRENT_SAFE: WhenTRUE, allows this endpoint to be run safely with other concurrent database operations. Other operations may be slower while this is running. Supported values: The default value isTRUE.VERIFY_RANK0: IfTRUE, compare rank0 table metadata against workers' metadata. Supported values: The default value isFALSE.DELETE_ORPHANED_TABLES: IfTRUE, orphaned table directories found on workers for which there is no corresponding metadata will be deleted. It is recommended to run this while the database is offline OR setCONCURRENT_SAFEinoptionstoTRUE. Supported values: The default value isFALSE.VERIFY_ORPHANED_TABLES_ONLY: IfTRUE, only the presence of orphaned table directories will be checked, all persistence and table consistency checks will be skipped. Supported values: The default value isFALSE.TABLE_INCLUDES: Comma-separated list of table names to include when verifying table consistency on wokers. Cannot be used simultaneously withTABLE_EXCLUDES.TABLE_EXCLUDES: Comma-separated list of table names to exclude when verifying table consistency on wokers. Cannot be used simultaneously withTABLE_INCLUDES.
Map.- Parameters:
options- The new value foroptions.- 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
-
-