C# Class vcsparser.core.Database.Cosmos.CosmosConnection

Inheritance: ICosmosConnection
Datei anzeigen Open project: ericlemes/vcsparser

Public Methods

Method Description
BulkDeleteDocuments ( string collectionId, List idsToDelete ) : Task
BulkInsertBatches ( string collectionId, IEnumerable documentBatches, Action batchFinished = null ) : Task
BulkInsertByBatchSize ( string collectionId, IEnumerable documents, Action batchFinished = null ) : Task
CosmosConnection ( IDatabaseFactory databaseFactory, string databaseId, int bulkBatchSize ) : System
CreateDocumentCollectionQuery ( string collectionId, FeedOptions options = null ) : DocumentCollection
CreateDocumentQuery ( string collectionId, SqlQuerySpec query, FeedOptions options = null ) : IQueryable

Private Methods

Method Description
BulkInsertAsync ( IBulkExecutor bulkExecutor, IEnumerable documentBatch ) : Task
CreateDocument ( string collectionId, object document, RequestOptions options = null ) : Task
CreateDocumentBatches ( int numberOfBatches, int numberOfDocumentsPerBatch, IEnumerable documents ) : IEnumerable>
DeleteDocument ( string collectionId, string documentId, RequestOptions options = null ) : Task
GetAndInitializeBulkExecutor ( string collectionId ) : Task
PostBulkExecutor ( ) : void
UpdateCosmosBulkImportSummary ( vcsparser.core.Database.Cosmos.CosmosBulkImportSummary jobSummray, vcsparser.core.Database.Cosmos.CosmosBulkImportSummary batchSummray ) : void

Method Details

BulkDeleteDocuments() public method

public BulkDeleteDocuments ( string collectionId, List idsToDelete ) : Task
collectionId string
idsToDelete List
return Task

BulkInsertBatches() public method

public BulkInsertBatches ( string collectionId, IEnumerable documentBatches, Action batchFinished = null ) : Task
collectionId string
documentBatches IEnumerable
batchFinished Action
return Task

BulkInsertByBatchSize() public method

public BulkInsertByBatchSize ( string collectionId, IEnumerable documents, Action batchFinished = null ) : Task
collectionId string
documents IEnumerable
batchFinished Action
return Task

CosmosConnection() public method

public CosmosConnection ( IDatabaseFactory databaseFactory, string databaseId, int bulkBatchSize ) : System
databaseFactory IDatabaseFactory
databaseId string
bulkBatchSize int
return System

CreateDocumentCollectionQuery() public method

public CreateDocumentCollectionQuery ( string collectionId, FeedOptions options = null ) : DocumentCollection
collectionId string
options FeedOptions
return DocumentCollection

CreateDocumentQuery() public method

public CreateDocumentQuery ( string collectionId, SqlQuerySpec query, FeedOptions options = null ) : IQueryable
collectionId string
query SqlQuerySpec
options FeedOptions
return IQueryable