public enum MaintenanceType extends Enum<MaintenanceType>
Enum Constant and Description |
---|
COMPACT
Shrinks the database file by removing any empty pages,
and deletes blobs that are no longer referenced by any documents.
|
FULL_OPTIMIZE
Fully scans all indexes to gather database statistics that help optimize queries.
|
INTEGRITY_CHECK
Checks for database corruption, as might be caused by a damaged filesystem,
or memory corruption.
|
OPTIMIZE
Quickly updates database statistics that may help optimize queries that have been run
by this Database since it was opened.
|
REINDEX
Use only in collaboration with Couchbase Support.
|
Modifier and Type | Method and Description |
---|---|
static MaintenanceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MaintenanceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Volatile public static final MaintenanceType REINDEX
public static final MaintenanceType COMPACT
public static final MaintenanceType INTEGRITY_CHECK
public static final MaintenanceType OPTIMIZE
This operation is also performed automatically when a Database is closed.
public static final MaintenanceType FULL_OPTIMIZE
public static MaintenanceType[] values()
for (MaintenanceType c : MaintenanceType.values()) System.out.println(c);
public static MaintenanceType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null