public class AdminVerifyDbRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.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.
Modifier and Type | Class and Description |
---|---|
static class |
AdminVerifyDbRequest.Options
A set of string constants for the
AdminVerifyDbRequest parameter
options . |
Constructor and Description |
---|
AdminVerifyDbRequest()
Constructs an AdminVerifyDbRequest object with default parameters.
|
AdminVerifyDbRequest(Map<String,String> options)
Constructs an AdminVerifyDbRequest object with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
static org.apache.avro.Schema |
getClassSchema()
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.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
AdminVerifyDbRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
String |
toString() |
public AdminVerifyDbRequest()
public AdminVerifyDbRequest(Map<String,String> options)
options
- Optional parameters.
REBUILD_ON_ERROR
: [DEPRECATED -- Use the
Rebuild DB feature of GAdmin instead.].
Supported values:
The default value is FALSE
.
VERIFY_NULLS
: When
TRUE
, verifies that null
values are set to zero.
Supported values:
The default value is FALSE
.
VERIFY_PERSIST
:
When TRUE
, 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 set CONCURRENT_SAFE
in
options
to TRUE
or
place the database offline.
Supported values:
The default value is FALSE
.
CONCURRENT_SAFE
:
When TRUE
, 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 is TRUE
.
VERIFY_RANK0
: If
TRUE
, compare rank0 table
metadata against workers' metadata.
Supported values:
The default value is FALSE
.
DELETE_ORPHANED_TABLES
: If TRUE
, orphaned table directories found on
workers for which there is no corresponding
metadata will be deleted. Must set VERIFY_PERSIST
in options
to TRUE
. It is
recommended to run this while the database is
offline OR set CONCURRENT_SAFE
in options
to TRUE
.
Supported values:
The default value is FALSE
.
VERIFY_ORPHANED_TABLES_ONLY
: If TRUE
, only the presence of
orphaned table directories will be checked, all
persistence checks will be skipped.
Supported values:
The default value is FALSE
.
Map
.public static org.apache.avro.Schema getClassSchema()
public Map<String,String> getOptions()
REBUILD_ON_ERROR
: [DEPRECATED
-- Use the Rebuild DB feature of GAdmin instead.].
Supported values:
The default value is FALSE
.
VERIFY_NULLS
: When TRUE
, verifies that null values are set to zero.
Supported values:
The default value is FALSE
.
VERIFY_PERSIST
: When TRUE
, 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
set CONCURRENT_SAFE
in options
to TRUE
or place the
database offline.
Supported values:
The default value is FALSE
.
CONCURRENT_SAFE
: When TRUE
, 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 is TRUE
.
VERIFY_RANK0
: If TRUE
, compare rank0 table metadata against
workers' metadata.
Supported values:
The default value is FALSE
.
DELETE_ORPHANED_TABLES
:
If TRUE
, orphaned table directories found
on workers for which there is no corresponding metadata will be
deleted. Must set VERIFY_PERSIST
in options
to TRUE
.
It is recommended to run this while the database is offline OR
set CONCURRENT_SAFE
in options
to TRUE
.
Supported values:
The default value is FALSE
.
VERIFY_ORPHANED_TABLES_ONLY
: If TRUE
, only
the presence of orphaned table directories will be checked, all
persistence checks will be skipped.
Supported values:
The default value is FALSE
.
Map
.options
.public AdminVerifyDbRequest setOptions(Map<String,String> options)
REBUILD_ON_ERROR
: [DEPRECATED
-- Use the Rebuild DB feature of GAdmin instead.].
Supported values:
The default value is FALSE
.
VERIFY_NULLS
: When TRUE
, verifies that null values are set to zero.
Supported values:
The default value is FALSE
.
VERIFY_PERSIST
: When TRUE
, 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
set CONCURRENT_SAFE
in options
to TRUE
or place the
database offline.
Supported values:
The default value is FALSE
.
CONCURRENT_SAFE
: When TRUE
, 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 is TRUE
.
VERIFY_RANK0
: If TRUE
, compare rank0 table metadata against
workers' metadata.
Supported values:
The default value is FALSE
.
DELETE_ORPHANED_TABLES
:
If TRUE
, orphaned table directories found
on workers for which there is no corresponding metadata will be
deleted. Must set VERIFY_PERSIST
in options
to TRUE
.
It is recommended to run this while the database is offline OR
set CONCURRENT_SAFE
in options
to TRUE
.
Supported values:
The default value is FALSE
.
VERIFY_ORPHANED_TABLES_ONLY
: If TRUE
, only
the presence of orphaned table directories will be checked, all
persistence checks will be skipped.
Supported values:
The default value is FALSE
.
Map
.options
- The new value for options
.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2025. All rights reserved.