C# Class Arango.Client.ACollection

Afficher le fichier Open project: yojimbo87/ArangoDB-NET

Méthodes publiques

Méthode Description
AllowUserKeys ( bool value ) : ACollection

Determines whether it is allowed to supply custom key values in the _key attribute of a document. Default value: true.

ChangeProperties ( string collectionName ) : object>>.AResult

Changes properties of specified collection.

Count ( bool value ) : ACollection

Determines whether the return value should include the number of documents in collection. Default value: true.

Create ( string collectionName ) : object>>.AResult

Creates new collection in current database context.

Delete ( string collectionName ) : object>>.AResult

Deletes specified collection.

DoCompact ( bool value ) : ACollection

Determines whether the collection will be compacted. Default value: true.

Get ( string collectionName ) : object>>.AResult

Retrieves basic information about specified collection.

GetAllIndexes ( string collectionName ) : object>>.AResult

Retrieves list of indexes in specified collection.

GetChecksum ( string collectionName ) : object>>.AResult

Retrieves basic information, revision ID and checksum of specified collection.

GetCount ( string collectionName ) : object>>.AResult

Retrieves basic information with additional properties and document count in specified collection.

GetFigures ( string collectionName ) : object>>.AResult

Retrieves basic information with additional properties, document count and figures in specified collection.

GetProperties ( string collectionName ) : object>>.AResult

Retrieves basic information with additional properties about specified collection.

GetRevision ( string collectionName ) : object>>.AResult

Retrieves basic information and revision ID of specified collection.

IsSystem ( bool value ) : ACollection

Determines whether the collection is a system collection. Default value: false.

IsVolatile ( bool value ) : ACollection

Determines whether the collection data is kept in-memory only and not made persistent. Default value: false.

JournalSize ( long value ) : ACollection

Determines maximum size of a journal or datafile in bytes. Default value: server configured.

KeyGeneratorType ( AKeyGeneratorType value ) : ACollection

Determines the type of the key generator. Default value: Traditional.

KeyIncrement ( long value ) : ACollection

Determines increment value for autoincrement key generator.

KeyOffset ( long value ) : ACollection

Determines initial offset value for autoincrement key generator.

Load ( string collectionName ) : object>>.AResult

Loads specified collection into memory.

NumberOfShards ( int value ) : ACollection

Determines the number of shards to create for the collection in cluster environment. Default value: 1.

Rename ( string collectionName, string newCollectionName ) : object>>.AResult

Renames specified collection.

ReturnListType ( AReturnListType value ) : ACollection

Determines which attribute will be retuned in the list. Default value: Path.

RotateJournal ( string collectionName ) : AResult

Rotates the journal of specified collection to make the data in the file available for compaction. Current journal of the collection will be closed and turned into read-only datafile. This operation is not available in cluster environment.

ShardKeys ( List value ) : ACollection

Determines which document attributes are used to specify the target shard for documents in cluster environment. Default value: ["_key"].

Truncate ( string collectionName ) : object>>.AResult

Removes all documents from specified collection.

Type ( ACollectionType value ) : ACollection

Determines type of the collection. Default value: Document.

Unload ( string collectionName ) : object>>.AResult

Unloads specified collection from memory.

WaitForSync ( bool value ) : ACollection

Determines whether or not to wait until data are synchronised to disk. Default value: false.

WithData ( bool value ) : ACollection

Determines whether to include document body data in the checksum calculation. Default value: false.

WithRevisions ( bool value ) : ACollection

Determines whether to include document revision ids in the checksum calculation. Default value: false.

Private Methods

Méthode Description
ACollection ( Connection connection ) : System.Collections.Generic

Method Details

AllowUserKeys() public méthode

Determines whether it is allowed to supply custom key values in the _key attribute of a document. Default value: true.
public AllowUserKeys ( bool value ) : ACollection
value bool
Résultat ACollection

ChangeProperties() public méthode

Changes properties of specified collection.
public ChangeProperties ( string collectionName ) : object>>.AResult
collectionName string
Résultat object>>.AResult

Count() public méthode

Determines whether the return value should include the number of documents in collection. Default value: true.
public Count ( bool value ) : ACollection
value bool
Résultat ACollection

Create() public méthode

Creates new collection in current database context.
public Create ( string collectionName ) : object>>.AResult
collectionName string
Résultat object>>.AResult

Delete() public méthode

Deletes specified collection.
public Delete ( string collectionName ) : object>>.AResult
collectionName string
Résultat object>>.AResult

DoCompact() public méthode

Determines whether the collection will be compacted. Default value: true.
public DoCompact ( bool value ) : ACollection
value bool
Résultat ACollection

Get() public méthode

Retrieves basic information about specified collection.
public Get ( string collectionName ) : object>>.AResult
collectionName string
Résultat object>>.AResult

GetAllIndexes() public méthode

Retrieves list of indexes in specified collection.
public GetAllIndexes ( string collectionName ) : object>>.AResult
collectionName string
Résultat object>>.AResult

GetChecksum() public méthode

Retrieves basic information, revision ID and checksum of specified collection.
public GetChecksum ( string collectionName ) : object>>.AResult
collectionName string
Résultat object>>.AResult

GetCount() public méthode

Retrieves basic information with additional properties and document count in specified collection.
public GetCount ( string collectionName ) : object>>.AResult
collectionName string
Résultat object>>.AResult

GetFigures() public méthode

Retrieves basic information with additional properties, document count and figures in specified collection.
public GetFigures ( string collectionName ) : object>>.AResult
collectionName string
Résultat object>>.AResult

GetProperties() public méthode

Retrieves basic information with additional properties about specified collection.
public GetProperties ( string collectionName ) : object>>.AResult
collectionName string
Résultat object>>.AResult

GetRevision() public méthode

Retrieves basic information and revision ID of specified collection.
public GetRevision ( string collectionName ) : object>>.AResult
collectionName string
Résultat object>>.AResult

IsSystem() public méthode

Determines whether the collection is a system collection. Default value: false.
public IsSystem ( bool value ) : ACollection
value bool
Résultat ACollection

IsVolatile() public méthode

Determines whether the collection data is kept in-memory only and not made persistent. Default value: false.
public IsVolatile ( bool value ) : ACollection
value bool
Résultat ACollection

JournalSize() public méthode

Determines maximum size of a journal or datafile in bytes. Default value: server configured.
public JournalSize ( long value ) : ACollection
value long
Résultat ACollection

KeyGeneratorType() public méthode

Determines the type of the key generator. Default value: Traditional.
public KeyGeneratorType ( AKeyGeneratorType value ) : ACollection
value AKeyGeneratorType
Résultat ACollection

KeyIncrement() public méthode

Determines increment value for autoincrement key generator.
public KeyIncrement ( long value ) : ACollection
value long
Résultat ACollection

KeyOffset() public méthode

Determines initial offset value for autoincrement key generator.
public KeyOffset ( long value ) : ACollection
value long
Résultat ACollection

Load() public méthode

Loads specified collection into memory.
public Load ( string collectionName ) : object>>.AResult
collectionName string
Résultat object>>.AResult

NumberOfShards() public méthode

Determines the number of shards to create for the collection in cluster environment. Default value: 1.
public NumberOfShards ( int value ) : ACollection
value int
Résultat ACollection

Rename() public méthode

Renames specified collection.
public Rename ( string collectionName, string newCollectionName ) : object>>.AResult
collectionName string
newCollectionName string
Résultat object>>.AResult

ReturnListType() public méthode

Determines which attribute will be retuned in the list. Default value: Path.
public ReturnListType ( AReturnListType value ) : ACollection
value AReturnListType
Résultat ACollection

RotateJournal() public méthode

Rotates the journal of specified collection to make the data in the file available for compaction. Current journal of the collection will be closed and turned into read-only datafile. This operation is not available in cluster environment.
public RotateJournal ( string collectionName ) : AResult
collectionName string
Résultat AResult

ShardKeys() public méthode

Determines which document attributes are used to specify the target shard for documents in cluster environment. Default value: ["_key"].
public ShardKeys ( List value ) : ACollection
value List
Résultat ACollection

Truncate() public méthode

Removes all documents from specified collection.
public Truncate ( string collectionName ) : object>>.AResult
collectionName string
Résultat object>>.AResult

Type() public méthode

Determines type of the collection. Default value: Document.
public Type ( ACollectionType value ) : ACollection
value ACollectionType
Résultat ACollection

Unload() public méthode

Unloads specified collection from memory.
public Unload ( string collectionName ) : object>>.AResult
collectionName string
Résultat object>>.AResult

WaitForSync() public méthode

Determines whether or not to wait until data are synchronised to disk. Default value: false.
public WaitForSync ( bool value ) : ACollection
value bool
Résultat ACollection

WithData() public méthode

Determines whether to include document body data in the checksum calculation. Default value: false.
public WithData ( bool value ) : ACollection
value bool
Résultat ACollection

WithRevisions() public méthode

Determines whether to include document revision ids in the checksum calculation. Default value: false.
public WithRevisions ( bool value ) : ACollection
value bool
Résultat ACollection