public static class DocumentBulkExecutor.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
DocumentBulkExecutor |
build()
Instantiates
DocumentBulkExecutor given the configured DocumentBulkExecutor.Builder. |
DocumentBulkExecutor.Builder |
from(com.microsoft.azure.documentdb.DocumentClient client,
String databaseName,
String collectionName,
com.microsoft.azure.documentdb.PartitionKeyDefinition partitionKeyDef,
int offerThroughput)
Use the instance of
DocumentClient to perform bulk operations in target DocumentCollection instance at specified allocated throughput. |
DocumentBulkExecutor.Builder |
withInitializationRetryOptions(com.microsoft.azure.documentdb.RetryOptions options)
Use the given retry options to apply to
DocumentClient used in initialization of DocumentBulkExecutor. |
DocumentBulkExecutor.Builder |
withMaxMiniBatchSize(int size)
Use the given size to configure max mini-batch size (specific to bulk import API).
|
DocumentBulkExecutor.Builder |
withMaxUpdateMiniBatchCount(int count)
Use the given count to configure max update mini-batch count (specific to bulk update API).
|
public DocumentBulkExecutor.Builder from(com.microsoft.azure.documentdb.DocumentClient client, String databaseName, String collectionName, com.microsoft.azure.documentdb.PartitionKeyDefinition partitionKeyDef, int offerThroughput)
DocumentClient to perform bulk operations in target DocumentCollection instance at specified allocated throughput.client - an instance of DocumentClientpartitionKeyDef - specifies the PartitionKeyDefinition of the collectiondatabaseName - name of the databasecollectionName - name of the collectionofferThroughput - specifies the throughput allocated for bulk operations out of the collection's total throughputDocumentBulkExecutor.Builderpublic DocumentBulkExecutor.Builder withMaxMiniBatchSize(int size)
size - specifies the size of a mini-batch used in bulk import API.DocumentBulkExecutor.Builderpublic DocumentBulkExecutor.Builder withMaxUpdateMiniBatchCount(int count)
count - specifies the maximum count of update items in a mini-batch used in bulk import API.DocumentBulkExecutor.Builderpublic DocumentBulkExecutor.Builder withInitializationRetryOptions(com.microsoft.azure.documentdb.RetryOptions options)
DocumentClient used in initialization of DocumentBulkExecutor.options - an instance of RetryOptionsDocumentBulkExecutor.Builderpublic DocumentBulkExecutor build() throws Exception
DocumentBulkExecutor given the configured DocumentBulkExecutor.Builder.DocumentBulkExecutorException - if there is any failureCopyright © 2021. All rights reserved.