public final class ArangoSearchPropertiesOptions extends Object
Constructor and Description |
---|
ArangoSearchPropertiesOptions() |
Modifier and Type | Method and Description |
---|---|
ArangoSearchPropertiesOptions |
cleanupIntervalStep(Long cleanupIntervalStep) |
ArangoSearchPropertiesOptions |
consolidationIntervalMsec(Long consolidationIntervalMsec) |
ArangoSearchPropertiesOptions |
consolidationPolicy(ConsolidationPolicy consolidationPolicy) |
Long |
getCleanupIntervalStep() |
Long |
getConsolidationIntervalMsec() |
ConsolidationPolicy |
getConsolidationPolicy() |
Collection<CollectionLink> |
getLinks() |
Collection<PrimarySort> |
getPrimarySorts() |
ArangoSearchPropertiesOptions |
link(CollectionLink... links) |
ArangoSearchPropertiesOptions |
primarySort(PrimarySort... primarySorts) |
public ArangoSearchPropertiesOptions consolidationIntervalMsec(Long consolidationIntervalMsec)
consolidationIntervalMsec
- Wait at least this many milliseconds between committing index data changes
and making them visible to
queries (default: 60000, to disable use: 0). For the case where there are a
lot of inserts/updates, a
lower value, until commit, will cause the index not to account for them and
memory usage would
continue to grow. For the case where there are a few inserts/updates, a
higher value will impact
performance and waste disk space for each commit call without any added
benefits.public ArangoSearchPropertiesOptions cleanupIntervalStep(Long cleanupIntervalStep)
cleanupIntervalStep
- Wait at least this many commits between removing unused files in data directory
(default: 10, to
disable use: 0). For the case where the consolidation policies merge segments often
(i.e. a lot of
commit+consolidate), a lower value will cause a lot of disk space to be wasted. For
the case where the
consolidation policies rarely merge segments (i.e. few inserts/deletes), a higher
value will impact
performance without any added benefits.public ArangoSearchPropertiesOptions consolidationPolicy(ConsolidationPolicy consolidationPolicy)
consolidationPolicy
- public ArangoSearchPropertiesOptions link(CollectionLink... links)
links
- A list of linked collectionspublic ArangoSearchPropertiesOptions primarySort(PrimarySort... primarySorts)
primarySorts
- A list of primarySort objectspublic Long getConsolidationIntervalMsec()
public Long getCleanupIntervalStep()
public ConsolidationPolicy getConsolidationPolicy()
public Collection<CollectionLink> getLinks()
public Collection<PrimarySort> getPrimarySorts()
Copyright © 2016–2023 ArangoDB GmbH. All rights reserved.