CosmosBulkOperations Class
- java.
lang. Object - com.
azure. cosmos. models. CosmosBulkOperations
- com.
public final class CosmosBulkOperations
Utility for creating bulk operations which can be executed by calling executeBulkOperations(Flux<CosmosItemOperation> operations, CosmosBulkExecutionOptions bulkOptions) . Also while creating these operation, if some options which are only for individual operation can be provided by passing a CosmosBulkItemRequestOptions while creating the bulk operation. See also CosmosBulkExecutionOptions.
Constructor Summary
Constructor | Description | |
---|---|---|
CosmosBulkOperations() |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
CosmosBulkOperations
public CosmosBulkOperations()
Method Details
<T,TContext>getCreateItemOperation
public static CosmosItemOperation
Instantiate an operation for Creating item in Bulk execution.
Parameters:
Returns:
<T,TContext>getCreateItemOperation
public static CosmosItemOperation
Instantiate an operation for Creating item in Bulk execution.
Parameters:
Returns:
<T,TContext>getReplaceItemOperation
public static CosmosItemOperation
Instantiate an operation for replace item in Bulk execution.
Parameters:
Returns:
<T,TContext>getReplaceItemOperation
public static CosmosItemOperation
Instantiate an operation for replace item in Bulk execution.
Parameters:
Returns:
<T,TContext>getUpsertItemOperation
public static CosmosItemOperation
Instantiate an operation for upsert item in Bulk execution.
Parameters:
Returns:
<T,TContext>getUpsertItemOperation
public static CosmosItemOperation
Instantiate an operation for upsert item in Bulk execution.
Parameters:
Returns:
getCreateItemOperation
public static CosmosItemOperation
Instantiate an operation for Creating item in Bulk execution.
Parameters:
Returns:
getCreateItemOperation
public static CosmosItemOperation
Instantiate an operation for Creating item in Bulk execution.
Parameters:
Returns:
getReplaceItemOperation
public static CosmosItemOperation
Instantiate an operation for replace item in Bulk execution.
Parameters:
Returns:
getReplaceItemOperation
public static CosmosItemOperation
Instantiate an operation for replace item in Bulk execution.
Parameters:
Returns:
getUpsertItemOperation
public static CosmosItemOperation
Instantiate an operation for upsert item in Bulk execution.
Parameters:
Returns:
getUpsertItemOperation
public static CosmosItemOperation
Instantiate an operation for upsert item in Bulk execution.
Parameters:
Returns:
getDeleteItemOperation
public static CosmosItemOperation
Instantiate an operation for deleting item in Bulk execution.
Parameters:
Returns:
getDeleteItemOperation
public static CosmosItemOperation
Instantiate an operation for deleting item in Bulk execution.
Parameters:
Returns:
getPatchItemOperation
public static CosmosItemOperation
Instantiate an operation for a patch in Bulk execution.
Parameters:
Returns:
getPatchItemOperation
public static CosmosItemOperation
Instantiate an operation for a patch in Bulk execution.
Parameters:
Returns:
getReadItemOperation
public static CosmosItemOperation
Instantiate an operation for read item in Bulk execution.
Parameters:
Returns:
getReadItemOperation
public static CosmosItemOperation
Instantiate an operation for read item in Bulk execution.
Parameters:
Returns:
getDeleteItemOperation
public static CosmosItemOperation getDeleteItemOperation(String id, PartitionKey partitionKey)
Instantiate an operation for deleting item in Bulk execution.
Parameters:
Returns:
getDeleteItemOperation
public static CosmosItemOperation getDeleteItemOperation(String id, PartitionKey partitionKey, CosmosBulkItemRequestOptions requestOptions)
Instantiate an operation for deleting item in Bulk execution.
Parameters:
Returns:
getPatchItemOperation
public static CosmosItemOperation getPatchItemOperation(String id, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations)
Instantiate an operation for a patch in Bulk execution.
Parameters:
Returns:
getPatchItemOperation
public static CosmosItemOperation getPatchItemOperation(String id, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, CosmosBulkPatchItemRequestOptions requestOptions)
Instantiate an operation for a patch in Bulk execution.
Parameters:
Returns:
getReadItemOperation
public static CosmosItemOperation getReadItemOperation(String id, PartitionKey partitionKey)
Instantiate an operation for read item in Bulk execution.
Parameters:
Returns:
getReadItemOperation
public static CosmosItemOperation getReadItemOperation(String id, PartitionKey partitionKey, CosmosBulkItemRequestOptions requestOptions)
Instantiate an operation for read item in Bulk execution.
Parameters:
Returns:
Applies to
Azure SDK for Java