

offset - Initial offset value for autoincrement key generator. increment - increment value for autoincrement key generator. The currently available generators are traditional andĪutoincrement. type - specifies the type of the key generator. Key values in the _key attribute of documents is considered an error.
#ARANGODB SHARDING GENERATOR#
Set to false, then the key generator will solely be responsible for generating keys and supplying own Integer offset) Parameters: allowUserKeys - if set to true, then it is allowed to supply own key values in the _key attribute of a document. keyOptions public CollectionCreateOptions keyOptions( Boolean allowUserKeys,.getKeyOptions public KeyOptions getKeyOptions().If a server fails, this isĭetected automatically and one of the servers holding copies take over, usually without an error being Replicationīetween them is synchronous, that is, every write operation to the "leader" copy will be replicated toĪll "follower" replicas, before the write operation is reported successful. Any two copies reside on different DBServers. Value of k means that k-1 replicas are kept. The value 1 means that only one copy (no synchronous replication) is kept. replicationFactor public CollectionCreateOptions replicationFactor( Integer replicationFactor) Parameters: replicationFactor - (The default is 1): in a cluster, this attribute determines how many copies of each shard are kept onĭifferent DBServers.getReplicationFactor public Integer getReplicationFactor().The value must be at least 1048576 (1 MiB).

journalSize public CollectionCreateOptions journalSize( Long journalSize) Parameters: journalSize - The maximal size of a journal or datafile in bytes.getJournalSize public Long getJournalSize().name protected CollectionCreateOptions name( String name) Parameters: name - The name of the collection Returns: options.CollectionCreateOptions public CollectionCreateOptions().Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait Methods inherited from class java.lang.ReplicationFactor( Integer replicationFactor) Method Summary All Methods Instance Methods Concrete Methods Modifier and Type.Constructor Summary Constructors Constructor and Description.
