Click or drag to resize

PostCollectionBody Class

Inheritance Hierarchy
SystemObject
  ArangoDBNetStandard.CollectionApi.ModelsPostCollectionBody

Namespace:  ArangoDBNetStandard.CollectionApi.Models
Assembly:  ArangoDBNetStandard (in ArangoDBNetStandard.dll) Version: 1.1.0
Syntax
public class PostCollectionBody

The PostCollectionBody type exposes the following members.

Constructors
  NameDescription
Public methodPostCollectionBody
Initializes a new instance of the PostCollectionBody class
Top
Properties
  NameDescription
Public propertyDistributeShardsLike
(The default is ""): in an enterprise cluster, this attribute binds the specifics of sharding for the newly created collection to follow that of a specified existing collection. Note: Using this parameter has consequences for the prototype collection. It can no longer be dropped, before sharding imitating collections are dropped. Equally, backups and restores of imitating collections alone will generate warnings, which can be overridden, about missing sharding prototype.
Public propertyDoCompact
Deprecated. Whether or not the collection will be compacted (default is true). This option is meaningful for the MMFiles storage engine only.
Public propertyIndexBuckets
Deprecated. The number of buckets into which indexes using a hash table are split. The default is 16 and this number has to be a power of 2 and less than or equal to 1024. For very large collections one should increase this to avoid long pauses when the hash table has to be initially built or resized, since buckets are resized individually and can be initially built in parallel. For example, 64 might be a sensible value for a collection with 100 000 000 documents. This option is meaningful for the MMFiles storage engine only.
Public propertyIsSystem
If true, create a system collection. In this case collection-name should start with an underscore. (The default is false)
Public propertyIsVolatile
Deprecated. If true then the collection data is kept in-memory only and not made persistent. Unloading the collection will cause the collection data to be discarded. Stopping or re-starting the server will also cause full loss of data in the collection. Setting this option will make the resulting collection be slightly faster than regular collections because ArangoDB does not enforce any synchronization to disk and does not calculate any CRC checksums for datafiles (as there are no datafiles). This option should therefore be used for cache-type collections only, and not for data that cannot be re-created otherwise. (The default is false) This option is meaningful for the MMFiles storage engine only.
Public propertyJournalSize
Deprecated. The maximal size of a journal or datafile in bytes. The value must be at least 1048576 (1 MiB). (The default is a configuration parameter) This option is meaningful for the MMFiles storage engine only.
Public propertyKeyOptions
Additional options for key generation.
Public propertyName
The name of the collection to create.
Public propertyNumberOfShards
(The default is 1): in a cluster, this value determines the number of shards to create for the collection. In a single server setup, this option is meaningless.
Public propertyReplicationFactor
(The default is 1): in a cluster, this attribute determines how many copies of each shard are kept on different DB-Servers. The value 1 means that only one copy (no synchronous replication) is kept. A value of k means that k-1 replicas are kept. (Enterprise Edition only)
Public propertyShardingStrategy
This attribute specifies the name of the sharding strategy to use for the collection. Since ArangoDB 3.4 there are different sharding strategies to select from when creating a new collection. The selected ShardingStrategy value will remain fixed for the collection and cannot be changed afterwards.
Public propertyShardKeys
(The default is [“_key”]): in a cluster, this attribute determines which document attributes are used to determine the target shard for documents. Values of shard key attributes cannot be changed once set. This option is meaningless in a single server setup.
Public propertySmartJoinAttribute
In an Enterprise Edition cluster, this attribute determines an attribute of the collection that must contain the shard key value of the referred-to SmartJoin collection. Additionally, the shard key for a document in this collection must contain the value of this attribute, followed by a colon, followed by the actual primary key of the document.
Public propertyType
The type of the collection to create.
Public propertyWaitForSync
If true then the data is synchronized to disk before returning from a document create, update, replace or removal operation. (default: false)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also