@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public final class BulkOperations extends Object
CosmosAsyncContainer.processBulkOperations(Flux, BulkExecutionOptions)
.
Also while creating these operation, if some options which are only for individual operation can be provided by passing
a BulkItemRequestOptions
while creating the bulk operation.
See also BulkExecutionOptions
.Constructor and Description |
---|
BulkOperations() |
Modifier and Type | Method and Description |
---|---|
static <T> CosmosItemOperation |
getCreateItemOperation(T item,
PartitionKey partitionKey)
Instantiate an operation for Creating item in Bulk execution.
|
static <T> CosmosItemOperation |
getCreateItemOperation(T item,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions)
Instantiate an operation for Creating item in Bulk execution.
|
static <T,TContext> |
getCreateItemOperation(T item,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions,
TContext context)
Instantiate an operation for Creating item in Bulk execution.
|
static <T,TContext> |
getCreateItemOperation(T item,
PartitionKey partitionKey,
TContext context)
Instantiate an operation for Creating item in Bulk execution.
|
static CosmosItemOperation |
getDeleteItemOperation(String id,
PartitionKey partitionKey)
Instantiate an operation for deleting item in Bulk execution.
|
static CosmosItemOperation |
getDeleteItemOperation(String id,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions)
Instantiate an operation for deleting item in Bulk execution.
|
static <TContext> CosmosItemOperation |
getDeleteItemOperation(String id,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions,
TContext context)
Instantiate an operation for deleting item in Bulk execution.
|
static <TContext> CosmosItemOperation |
getDeleteItemOperation(String id,
PartitionKey partitionKey,
TContext context)
Instantiate an operation for deleting item in Bulk execution.
|
static CosmosItemOperation |
getPatchItemOperation(String id,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations)
Instantiate an operation for a patch in Bulk execution.
|
static CosmosItemOperation |
getPatchItemOperation(String id,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations,
BulkPatchItemRequestOptions requestOptions)
Instantiate an operation for a patch in Bulk execution.
|
static <TContext> CosmosItemOperation |
getPatchItemOperation(String id,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations,
BulkPatchItemRequestOptions requestOptions,
TContext context)
Instantiate an operation for a patch in Bulk execution.
|
static <TContext> CosmosItemOperation |
getPatchItemOperation(String id,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations,
TContext context)
Instantiate an operation for a patch in Bulk execution.
|
static CosmosItemOperation |
getReadItemOperation(String id,
PartitionKey partitionKey)
Instantiate an operation for read item in Bulk execution.
|
static CosmosItemOperation |
getReadItemOperation(String id,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions)
Instantiate an operation for read item in Bulk execution.
|
static <TContext> CosmosItemOperation |
getReadItemOperation(String id,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions,
TContext context)
Instantiate an operation for read item in Bulk execution.
|
static <TContext> CosmosItemOperation |
getReadItemOperation(String id,
PartitionKey partitionKey,
TContext context)
Instantiate an operation for read item in Bulk execution.
|
static <T> CosmosItemOperation |
getReplaceItemOperation(String id,
T item,
PartitionKey partitionKey)
Instantiate an operation for replace item in Bulk execution.
|
static <T> CosmosItemOperation |
getReplaceItemOperation(String id,
T item,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions)
Instantiate an operation for replace item in Bulk execution.
|
static <T,TContext> |
getReplaceItemOperation(String id,
T item,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions,
TContext context)
Instantiate an operation for replace item in Bulk execution.
|
static <T,TContext> |
getReplaceItemOperation(String id,
T item,
PartitionKey partitionKey,
TContext context)
Instantiate an operation for replace item in Bulk execution.
|
static <T> CosmosItemOperation |
getUpsertItemOperation(T item,
PartitionKey partitionKey)
Instantiate an operation for upsert item in Bulk execution.
|
static <T> CosmosItemOperation |
getUpsertItemOperation(T item,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions)
Instantiate an operation for upsert item in Bulk execution.
|
static <T,TContext> |
getUpsertItemOperation(T item,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions,
TContext context)
Instantiate an operation for upsert item in Bulk execution.
|
static <T,TContext> |
getUpsertItemOperation(T item,
PartitionKey partitionKey,
TContext context)
Instantiate an operation for upsert item in Bulk execution.
|
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <T> CosmosItemOperation getCreateItemOperation(T item, PartitionKey partitionKey)
T
- The type of item to be created.item
- A JSON serializable object that must contain an id property.partitionKey
- the partition key for the operation@Beta(value=V4_18_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <T,TContext> CosmosItemOperation getCreateItemOperation(T item, PartitionKey partitionKey, TContext context)
T
- The type of item to be created.TContext
- The type of context to be used.item
- A JSON serializable object that must contain an id property.partitionKey
- the partition key for the operationcontext
- The caller provided context for this operation.@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <T> CosmosItemOperation getCreateItemOperation(T item, PartitionKey partitionKey, BulkItemRequestOptions requestOptions)
T
- The type of item to be created.item
- A JSON serializable object that must contain an id property.partitionKey
- the partition key for the operation.requestOptions
- The options for the item request.@Beta(value=V4_18_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <T,TContext> CosmosItemOperation getCreateItemOperation(T item, PartitionKey partitionKey, BulkItemRequestOptions requestOptions, TContext context)
T
- The type of item to be created.TContext
- The type of context to be used.item
- A JSON serializable object that must contain an id property.partitionKey
- the partition key for the operation.requestOptions
- The options for the item request.context
- The caller provided context for this operation.@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public static CosmosItemOperation getDeleteItemOperation(String id, PartitionKey partitionKey)
id
- The unique id of the item.partitionKey
- the partition key for the operation.@Beta(value=V4_18_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <TContext> CosmosItemOperation getDeleteItemOperation(String id, PartitionKey partitionKey, TContext context)
TContext
- The type of context to be used.id
- The unique id of the item.partitionKey
- the partition key for the operation.context
- The caller provided context for this operation.@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public static CosmosItemOperation getDeleteItemOperation(String id, PartitionKey partitionKey, BulkItemRequestOptions requestOptions)
id
- The unique id of the item.partitionKey
- the partition key for the operation..requestOptions
- The options for the item request.@Beta(value=V4_18_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <TContext> CosmosItemOperation getDeleteItemOperation(String id, PartitionKey partitionKey, BulkItemRequestOptions requestOptions, TContext context)
TContext
- The type of context to be used.id
- The unique id of the item.partitionKey
- the partition key for the operation..requestOptions
- The options for the item request.context
- The caller provided context for this operation.@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public static CosmosItemOperation getReadItemOperation(String id, PartitionKey partitionKey)
id
- The unique id of the item.partitionKey
- the partition key for the operation.@Beta(value=V4_18_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <TContext> CosmosItemOperation getReadItemOperation(String id, PartitionKey partitionKey, TContext context)
TContext
- The type of context to be used.id
- The unique id of the item.partitionKey
- the partition key for the operation.context
- The caller provided context for this operation.@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public static CosmosItemOperation getReadItemOperation(String id, PartitionKey partitionKey, BulkItemRequestOptions requestOptions)
id
- The unique id of the item.partitionKey
- the partition key for the operation..requestOptions
- The options for the item request.@Beta(value=V4_18_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <TContext> CosmosItemOperation getReadItemOperation(String id, PartitionKey partitionKey, BulkItemRequestOptions requestOptions, TContext context)
TContext
- The type of context to be used.id
- The unique id of the item.partitionKey
- the partition key for the operation..requestOptions
- The options for the item request.context
- The caller provided context for this operation.@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <T> CosmosItemOperation getReplaceItemOperation(String id, T item, PartitionKey partitionKey)
T
- The type of item to be replaced.id
- The unique id of the item.item
- A JSON serializable object that must contain an id property.partitionKey
- the partition key for the operation.@Beta(value=V4_18_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <T,TContext> CosmosItemOperation getReplaceItemOperation(String id, T item, PartitionKey partitionKey, TContext context)
T
- The type of item to be replaced.TContext
- The type of context to be used.id
- The unique id of the item.item
- A JSON serializable object that must contain an id property.partitionKey
- the partition key for the operation.context
- The caller provided context for this operation.@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <T> CosmosItemOperation getReplaceItemOperation(String id, T item, PartitionKey partitionKey, BulkItemRequestOptions requestOptions)
T
- The type of item to be replaced.id
- The unique id of the item..item
- A JSON serializable object that must contain an id property.partitionKey
- the partition key for the operation.requestOptions
- The options for the item request.@Beta(value=V4_18_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <T,TContext> CosmosItemOperation getReplaceItemOperation(String id, T item, PartitionKey partitionKey, BulkItemRequestOptions requestOptions, TContext context)
T
- The type of item to be replaced.TContext
- The type of context to be used.id
- The unique id of the item..item
- A JSON serializable object that must contain an id property.partitionKey
- the partition key for the operation.requestOptions
- The options for the item request.context
- The caller provided context for this operation.@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <T> CosmosItemOperation getUpsertItemOperation(T item, PartitionKey partitionKey)
T
- The type of item to be upserted.item
- A JSON serializable object that must contain an id property.partitionKey
- the partition key for the operation.@Beta(value=V4_18_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <T,TContext> CosmosItemOperation getUpsertItemOperation(T item, PartitionKey partitionKey, TContext context)
T
- The type of item to be upserted.TContext
- The type of context to be used.item
- A JSON serializable object that must contain an id property.partitionKey
- the partition key for the operation.context
- The caller provided context for this operation.@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <T> CosmosItemOperation getUpsertItemOperation(T item, PartitionKey partitionKey, BulkItemRequestOptions requestOptions)
T
- The type of item to be upserted.item
- A JSON serializable object that must contain an id property.partitionKey
- the partition key for the operation.requestOptions
- The options for the item request.@Beta(value=V4_18_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <T,TContext> CosmosItemOperation getUpsertItemOperation(T item, PartitionKey partitionKey, BulkItemRequestOptions requestOptions, TContext context)
T
- The type of item to be upserted.TContext
- The type of context to be used.item
- A JSON serializable object that must contain an id property.partitionKey
- the partition key for the operation.requestOptions
- The options for the item request.context
- The caller provided context for this operation.@Beta(value=V4_11_0, warningText="Preview API - subject to change in non-backwards compatible way") public static CosmosItemOperation getPatchItemOperation(String id, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations)
id
- the item id.partitionKey
- the partition key for the operation.cosmosPatchOperations
- Represents a container having list of operations to be sequentially applied to the referred Cosmos item.@Beta(value=V4_18_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <TContext> CosmosItemOperation getPatchItemOperation(String id, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, TContext context)
TContext
- The type of context to be used.id
- the item id.partitionKey
- the partition key for the operation.cosmosPatchOperations
- Represents a container having list of operations to be sequentially
applied to the referred Cosmos item.context
- The caller provided context for this operation.@Beta(value=V4_11_0, warningText="Preview API - subject to change in non-backwards compatible way") public static CosmosItemOperation getPatchItemOperation(String id, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, BulkPatchItemRequestOptions requestOptions)
id
- the item id.partitionKey
- the partition key for the operation.cosmosPatchOperations
- Represents a container having list of operations to be sequentially applied to the referred Cosmos item.requestOptions
- The options for the item request.@Beta(value=V4_18_0, warningText="Preview API - subject to change in non-backwards compatible way") public static <TContext> CosmosItemOperation getPatchItemOperation(String id, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, BulkPatchItemRequestOptions requestOptions, TContext context)
TContext
- The type of context to be used.id
- the item id.partitionKey
- the partition key for the operation.cosmosPatchOperations
- Represents a container having list of operations to be sequentially applied to the referred Cosmos item.requestOptions
- The options for the item request.context
- The caller provided context for this operation.Copyright © 2021 Microsoft Corporation. All rights reserved.