C# Класс Arango.Client.ACollection

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ACollection ( Connection connection ) : System.Collections.Generic

Описание методов

AllowUserKeys() публичный Метод

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
Результат ACollection

ChangeProperties() публичный Метод

Changes properties of specified collection.
public ChangeProperties ( string collectionName ) : object>>.AResult
collectionName string
Результат object>>.AResult

Count() публичный Метод

Determines whether the return value should include the number of documents in collection. Default value: true.
public Count ( bool value ) : ACollection
value bool
Результат ACollection

Create() публичный Метод

Creates new collection in current database context.
public Create ( string collectionName ) : object>>.AResult
collectionName string
Результат object>>.AResult

Delete() публичный Метод

Deletes specified collection.
public Delete ( string collectionName ) : object>>.AResult
collectionName string
Результат object>>.AResult

DoCompact() публичный Метод

Determines whether the collection will be compacted. Default value: true.
public DoCompact ( bool value ) : ACollection
value bool
Результат ACollection

Get() публичный Метод

Retrieves basic information about specified collection.
public Get ( string collectionName ) : object>>.AResult
collectionName string
Результат object>>.AResult

GetAllIndexes() публичный Метод

Retrieves list of indexes in specified collection.
public GetAllIndexes ( string collectionName ) : object>>.AResult
collectionName string
Результат object>>.AResult

GetChecksum() публичный Метод

Retrieves basic information, revision ID and checksum of specified collection.
public GetChecksum ( string collectionName ) : object>>.AResult
collectionName string
Результат object>>.AResult

GetCount() публичный Метод

Retrieves basic information with additional properties and document count in specified collection.
public GetCount ( string collectionName ) : object>>.AResult
collectionName string
Результат object>>.AResult

GetFigures() публичный Метод

Retrieves basic information with additional properties, document count and figures in specified collection.
public GetFigures ( string collectionName ) : object>>.AResult
collectionName string
Результат object>>.AResult

GetProperties() публичный Метод

Retrieves basic information with additional properties about specified collection.
public GetProperties ( string collectionName ) : object>>.AResult
collectionName string
Результат object>>.AResult

GetRevision() публичный Метод

Retrieves basic information and revision ID of specified collection.
public GetRevision ( string collectionName ) : object>>.AResult
collectionName string
Результат object>>.AResult

IsSystem() публичный Метод

Determines whether the collection is a system collection. Default value: false.
public IsSystem ( bool value ) : ACollection
value bool
Результат ACollection

IsVolatile() публичный Метод

Determines whether the collection data is kept in-memory only and not made persistent. Default value: false.
public IsVolatile ( bool value ) : ACollection
value bool
Результат ACollection

JournalSize() публичный Метод

Determines maximum size of a journal or datafile in bytes. Default value: server configured.
public JournalSize ( long value ) : ACollection
value long
Результат ACollection

KeyGeneratorType() публичный Метод

Determines the type of the key generator. Default value: Traditional.
public KeyGeneratorType ( AKeyGeneratorType value ) : ACollection
value AKeyGeneratorType
Результат ACollection

KeyIncrement() публичный Метод

Determines increment value for autoincrement key generator.
public KeyIncrement ( long value ) : ACollection
value long
Результат ACollection

KeyOffset() публичный Метод

Determines initial offset value for autoincrement key generator.
public KeyOffset ( long value ) : ACollection
value long
Результат ACollection

Load() публичный Метод

Loads specified collection into memory.
public Load ( string collectionName ) : object>>.AResult
collectionName string
Результат object>>.AResult

NumberOfShards() публичный Метод

Determines the number of shards to create for the collection in cluster environment. Default value: 1.
public NumberOfShards ( int value ) : ACollection
value int
Результат ACollection

Rename() публичный Метод

Renames specified collection.
public Rename ( string collectionName, string newCollectionName ) : object>>.AResult
collectionName string
newCollectionName string
Результат object>>.AResult

ReturnListType() публичный Метод

Determines which attribute will be retuned in the list. Default value: Path.
public ReturnListType ( AReturnListType value ) : ACollection
value AReturnListType
Результат ACollection

RotateJournal() публичный Метод

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
Результат AResult

ShardKeys() публичный Метод

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
Результат ACollection

Truncate() публичный Метод

Removes all documents from specified collection.
public Truncate ( string collectionName ) : object>>.AResult
collectionName string
Результат object>>.AResult

Type() публичный Метод

Determines type of the collection. Default value: Document.
public Type ( ACollectionType value ) : ACollection
value ACollectionType
Результат ACollection

Unload() публичный Метод

Unloads specified collection from memory.
public Unload ( string collectionName ) : object>>.AResult
collectionName string
Результат object>>.AResult

WaitForSync() публичный Метод

Determines whether or not to wait until data are synchronised to disk. Default value: false.
public WaitForSync ( bool value ) : ACollection
value bool
Результат ACollection

WithData() публичный Метод

Determines whether to include document body data in the checksum calculation. Default value: false.
public WithData ( bool value ) : ACollection
value bool
Результат ACollection

WithRevisions() публичный Метод

Determines whether to include document revision ids in the checksum calculation. Default value: false.
public WithRevisions ( bool value ) : ACollection
value bool
Результат ACollection