public class PersistentIndexOptions extends IndexOptions<PersistentIndexOptions>
Constructor and Description |
---|
PersistentIndexOptions() |
Modifier and Type | Method and Description |
---|---|
PersistentIndexOptions |
cacheEnabled(Boolean cacheEnabled) |
PersistentIndexOptions |
deduplicate(Boolean deduplicate) |
PersistentIndexOptions |
estimates(Boolean estimates) |
protected PersistentIndexOptions |
fields(Iterable<String> fields) |
Boolean |
getCacheEnabled() |
Boolean |
getDeduplicate() |
Boolean |
getEstimates() |
protected Iterable<String> |
getFields() |
Boolean |
getSparse() |
Collection<String> |
getStoredValues() |
protected PersistentIndexOptions |
getThis() |
protected IndexType |
getType() |
Boolean |
getUnique() |
PersistentIndexOptions |
sparse(Boolean sparse) |
PersistentIndexOptions |
storedValues(String... storedValues) |
PersistentIndexOptions |
unique(Boolean unique) |
getInBackground, getName, inBackground, name
protected final IndexType type
protected PersistentIndexOptions getThis()
getThis
in class IndexOptions<PersistentIndexOptions>
protected PersistentIndexOptions fields(Iterable<String> fields)
fields
- A list of attribute pathsprotected IndexType getType()
public Boolean getUnique()
public PersistentIndexOptions unique(Boolean unique)
unique
- if true, then create a unique indexpublic Boolean getSparse()
public PersistentIndexOptions sparse(Boolean sparse)
sparse
- if true, then create a sparse indexpublic Boolean getDeduplicate()
public PersistentIndexOptions deduplicate(Boolean deduplicate)
deduplicate
- if false, the deduplication of array values is turned off. Default: true
public PersistentIndexOptions estimates(Boolean estimates)
estimates
- This attribute controls whether index selectivity estimates are maintained for the index.
Default: true
public Boolean getEstimates()
public PersistentIndexOptions cacheEnabled(Boolean cacheEnabled)
cacheEnabled
- enables in-memory caching of index entriespublic Boolean getCacheEnabled()
public Collection<String> getStoredValues()
public PersistentIndexOptions storedValues(String... storedValues)
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.Copyright © 2016–2022 ArangoDB GmbH. All rights reserved.