DocumentBulkExecutor.Builder Class
- java.
lang. Object - com.
microsoft. azure. documentdb. bulkexecutor. DocumentBulkExecutor. Builder
- com.
public static class DocumentBulkExecutor.Builder
Method Summary
Modifier and Type | Method and Description |
---|---|
Document |
build()
Instantiates DocumentBulkExecutor given the configured Builder. |
Builder |
from(DocumentClient client, String databaseName, String collectionName, PartitionKeyDefinition partitionKeyDef, int offerThroughput)
Use the instance of DocumentClient to perform bulk operations in target DocumentCollection instance at specified allocated throughput. |
Builder |
withInitializationRetryOptions(RetryOptions options)
Use the given retry options to apply to DocumentClient used in initialization of DocumentBulkExecutor. |
Builder |
withMaxMiniBatchSize(int size)
Use the given size to configure max mini-batch size (specific to bulk import API). |
Builder |
withMaxUpdateMiniBatchCount(int count)
Use the given count to configure max update mini-batch count (specific to bulk update API). |
Methods inherited from java.lang.Object
Method Details
build
public DocumentBulkExecutor build()
Instantiates DocumentBulkExecutor given the configured Builder.
Returns:
Throws:
from
public DocumentBulkExecutor.Builder from(DocumentClient client, String databaseName, String collectionName, PartitionKeyDefinition partitionKeyDef, int offerThroughput)
Use the instance of DocumentClient to perform bulk operations in target DocumentCollection instance at specified allocated throughput.
Parameters:
Returns:
withInitializationRetryOptions
public DocumentBulkExecutor.Builder withInitializationRetryOptions(RetryOptions options)
Use the given retry options to apply to DocumentClient used in initialization of DocumentBulkExecutor.
Parameters:
Returns:
withMaxMiniBatchSize
public DocumentBulkExecutor.Builder withMaxMiniBatchSize(int size)
Use the given size to configure max mini-batch size (specific to bulk import API). If not specified will use the default value of 220200 bytes.
Parameters:
Returns:
withMaxUpdateMiniBatchCount
public DocumentBulkExecutor.Builder withMaxUpdateMiniBatchCount(int count)
Use the given count to configure max update mini-batch count (specific to bulk update API). If not specified will use the default value of 500.
Parameters:
Returns:
Applies to
Azure SDK for Java