public class CollectionPropertiesOptions extends Object
Constructor and Description |
---|
CollectionPropertiesOptions() |
Modifier and Type | Method and Description |
---|---|
Long |
getJournalSize() |
CollectionSchema |
getSchema() |
Boolean |
getWaitForSync() |
CollectionPropertiesOptions |
journalSize(Long journalSize) |
CollectionPropertiesOptions |
schema(CollectionSchema schema) |
CollectionPropertiesOptions |
waitForSync(Boolean waitForSync) |
public Boolean getWaitForSync()
public CollectionPropertiesOptions waitForSync(Boolean waitForSync)
waitForSync
- If true then creating or changing a document will wait until the data has been synchronized to disk.public Long getJournalSize()
public CollectionPropertiesOptions journalSize(Long journalSize)
journalSize
- The maximal size of a journal or datafile in bytes. The value must be at least 1048576 (1 MB). Note
that when changing the journalSize value, it will only have an effect for additional journals or
datafiles that are created. Already existing journals or datafiles will not be affected.public CollectionSchema getSchema()
public CollectionPropertiesOptions schema(CollectionSchema schema)
schema
- object that specifies the collection level schema for documentsCopyright © 2016–2021 ArangoDB GmbH. All rights reserved.