你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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: