Package com.couchbase.lite
Enum MaintenanceType
- All Implemented Interfaces:
Serializable
,Comparable<MaintenanceType>
-
Enum Constant Summary
Enum ConstantDescriptionShrinks the database file by removing any empty pages, and deletes blobs that are no longer referenced by any documents.Fully scans all indexes to gather database statistics that help optimize queries.Checks for database corruption, as might be caused by a damaged filesystem, or memory corruption.Quickly updates database statistics that may help optimize queries that have been run by this Database since it was opened.Use only in collaboration with Couchbase Support. -
Method Summary
Modifier and TypeMethodDescriptionstatic MaintenanceType
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.
-
Enum Constant Details
-
REINDEX
Use only in collaboration with Couchbase Support. (Runs SQLite `REINDEX`.) -
COMPACT
Shrinks the database file by removing any empty pages, and deletes blobs that are no longer referenced by any documents. (Runs SQLite `PRAGMA incremental_vacuum; PRAGMA wal_checkpoint(TRUNCATE)`.) -
INTEGRITY_CHECK
Checks for database corruption, as might be caused by a damaged filesystem, or memory corruption. (Runs SQLite `PRAGMA integrity_check`.) -
OPTIMIZE
Quickly updates database statistics that may help optimize queries that have been run by this Database since it was opened. The more queries that have been run, the more effective this will be, but it tries to do its work quickly by scanning only portions of indexes. (Runs SQLite `PRAGMA analysis_limit=400; PRAGMA optimize`.)This operation is also performed automatically when a Database is closed.
-
FULL_OPTIMIZE
Fully scans all indexes to gather database statistics that help optimize queries. This may take some time, depending on the size of the indexes, but it doesn't have to be redone unless the database changes drastically, or new indexes are created. (Runs SQLite `PRAGMA analysis_limit=0; ANALYZE`.)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-