Package com.arangodb.model
Class PersistentIndexOptions
- Author:
- Mark Vollmary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncacheEnabled
(Boolean cacheEnabled) deduplicate
(Boolean deduplicate) getType()
storedValues
(String... storedValues) Methods inherited from class com.arangodb.model.IndexOptions
getInBackground, getName, inBackground, name
-
Constructor Details
-
PersistentIndexOptions
public PersistentIndexOptions()
-
-
Method Details
-
getFields
-
getType
-
getUnique
-
unique
- Parameters:
unique
- if true, then create a unique index- Returns:
- options
-
getSparse
-
sparse
- Parameters:
sparse
- if true, then create a sparse index- Returns:
- options
-
getDeduplicate
-
deduplicate
- Parameters:
deduplicate
- if false, the deduplication of array values is turned off. Default:true
- Returns:
- options
-
estimates
- Parameters:
estimates
- This attribute controls whether index selectivity estimates are maintained for the index. Default:true
- Since:
- ArangoDB 3.8
-
getEstimates
-
cacheEnabled
- Parameters:
cacheEnabled
- enables in-memory caching of index entries- Returns:
- options
- Since:
- ArangoDB 3.10
-
getCacheEnabled
-
getStoredValues
-
storedValues
- Parameters:
storedValues
- (optional) array of paths to additional attributes to store in the index. These additional attributes cannot be used for index lookups or for sorting, but they can be used for projections. This allows an index to fully cover more queries and avoid extra document lookups. The maximum number of attributes in `storedValues` is 32.- Returns:
- options
-