Package com.gpudb.protocol
Class AdminRepairTableRequest
java.lang.Object
com.gpudb.protocol.AdminRepairTableRequest
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordpublic class AdminRepairTableRequest extends Object implements org.apache.avro.generic.IndexedRecord
A set of parameters for
GPUdb.adminRepairTable.
Manually repair a corrupted table. Returns information about affected tables.
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theAdminRepairTableRequestparameteroptions.Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Optional parameters.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.List of tables to query.ID of the type per table.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setOptions(Map<String, String> options) Optional parameters.setTableNames(List<String> tableNames) List of tables to query.setTableTypes(Map<String, String> tableTypes) ID of the type per table.toString()
Constructor Details
AdminRepairTableRequest
public AdminRepairTableRequest()Constructs an AdminRepairTableRequest object with default parameters.AdminRepairTableRequest
public AdminRepairTableRequest(List<String> tableNames, Map<String, String> tableTypes, Map<String, String> options) Constructs an AdminRepairTableRequest object with the specified parameters.Parameters:tableNames- List of tables to query. An asterisk returns all tables.tableTypes- ID of the type per table.options- Optional parameters.REPAIR_POLICY: Corrective action to take. Supported values:DELETE_CHUNKS: Deletes any corrupted chunks.SHRINK_COLUMNS: Shrinks corrupted chunks to the shortest column.REPLAY_WAL: Manually invokes write-ahead log (WAL) replay on the table.ALTER_TABLE: Reset columns modification after incomplete alter column.
VERIFY_ALL: IfFALSEonly table chunk data already known to be corrupted will be repaired. Otherwise the database will perform a full table scan to check for correctness. Supported values:The default value isFALSE.
Map.
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.setTableNames
List of tables to query. An asterisk returns all tables.Parameters:tableNames- The new value fortableNames.Returns:thisto mimic the builder pattern.setTableTypes
ID of the type per table.Parameters:tableTypes- The new value fortableTypes.Returns:thisto mimic the builder pattern.getOptions
Optional parameters.REPAIR_POLICY: Corrective action to take. Supported values:DELETE_CHUNKS: Deletes any corrupted chunks.SHRINK_COLUMNS: Shrinks corrupted chunks to the shortest column.REPLAY_WAL: Manually invokes write-ahead log (WAL) replay on the table.ALTER_TABLE: Reset columns modification after incomplete alter column.
VERIFY_ALL: IfFALSEonly table chunk data already known to be corrupted will be repaired. Otherwise the database will perform a full table scan to check for correctness. Supported values:The default value isFALSE.
Map.Returns:The current value ofoptions.setOptions
Optional parameters.REPAIR_POLICY: Corrective action to take. Supported values:DELETE_CHUNKS: Deletes any corrupted chunks.SHRINK_COLUMNS: Shrinks corrupted chunks to the shortest column.REPLAY_WAL: Manually invokes write-ahead log (WAL) replay on the table.ALTER_TABLE: Reset columns modification after incomplete alter column.
VERIFY_ALL: IfFALSEonly table chunk data already known to be corrupted will be repaired. Otherwise the database will perform a full table scan to check for correctness. Supported values:The default value isFALSE.
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.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: