Package com.arangodb.model
Class PersistentIndexOptions
- java.lang.Object
-
- com.arangodb.model.IndexOptions<PersistentIndexOptions>
-
- com.arangodb.model.PersistentIndexOptions
-
public final class PersistentIndexOptions extends IndexOptions<PersistentIndexOptions>
- Author:
- Mark Vollmary
- See Also:
- API Documentation
-
-
Constructor Summary
Constructors Constructor Description PersistentIndexOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PersistentIndexOptions
cacheEnabled(Boolean cacheEnabled)
PersistentIndexOptions
deduplicate(Boolean deduplicate)
PersistentIndexOptions
estimates(Boolean estimates)
Boolean
getCacheEnabled()
Boolean
getDeduplicate()
Boolean
getEstimates()
Iterable<String>
getFields()
Boolean
getSparse()
Collection<String>
getStoredValues()
IndexType
getType()
Boolean
getUnique()
PersistentIndexOptions
sparse(Boolean sparse)
PersistentIndexOptions
storedValues(String... storedValues)
PersistentIndexOptions
unique(Boolean unique)
-
Methods inherited from class com.arangodb.model.IndexOptions
getInBackground, getName, inBackground, name
-
-
-
-
Method Detail
-
getType
public IndexType getType()
-
getUnique
public Boolean getUnique()
-
unique
public PersistentIndexOptions unique(Boolean unique)
- Parameters:
unique
- if true, then create a unique index- Returns:
- options
-
getSparse
public Boolean getSparse()
-
sparse
public PersistentIndexOptions sparse(Boolean sparse)
- Parameters:
sparse
- if true, then create a sparse index- Returns:
- options
-
getDeduplicate
public Boolean getDeduplicate()
-
deduplicate
public PersistentIndexOptions deduplicate(Boolean deduplicate)
- Parameters:
deduplicate
- if false, the deduplication of array values is turned off. Default:true
- Returns:
- options
-
estimates
public PersistentIndexOptions estimates(Boolean estimates)
- Parameters:
estimates
- This attribute controls whether index selectivity estimates are maintained for the index. Default:true
- Since:
- ArangoDB 3.8
-
getEstimates
public Boolean getEstimates()
-
cacheEnabled
public PersistentIndexOptions cacheEnabled(Boolean cacheEnabled)
- Parameters:
cacheEnabled
- enables in-memory caching of index entries- Returns:
- options
- Since:
- ArangoDB 3.10
-
getCacheEnabled
public Boolean getCacheEnabled()
-
getStoredValues
public Collection<String> getStoredValues()
-
storedValues
public PersistentIndexOptions storedValues(String... 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
-
-