CosmosBulkOperations
Utility for creating bulk operations which can be executed by calling
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.@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") @Deprecated public final class BulkOperations extends Object
| Constructor and Description |
|---|
BulkOperations()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> CosmosItemOperation |
getCreateItemOperation(T item,
PartitionKey partitionKey)
Deprecated.
|
static <T> CosmosItemOperation |
getCreateItemOperation(T item,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions)
Deprecated.
|
static <T,TContext> |
getCreateItemOperation(T item,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions,
TContext context)
Deprecated.
|
static <T,TContext> |
getCreateItemOperation(T item,
PartitionKey partitionKey,
TContext context)
Deprecated.
|
static CosmosItemOperation |
getDeleteItemOperation(String id,
PartitionKey partitionKey)
Deprecated.
|
static CosmosItemOperation |
getDeleteItemOperation(String id,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions)
Deprecated.
|
static <TContext> CosmosItemOperation |
getDeleteItemOperation(String id,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions,
TContext context)
Deprecated.
|
static <TContext> CosmosItemOperation |
getDeleteItemOperation(String id,
PartitionKey partitionKey,
TContext context)
Deprecated.
|
static CosmosItemOperation |
getPatchItemOperation(String id,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations)
Deprecated.
|
static CosmosItemOperation |
getPatchItemOperation(String id,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations,
BulkPatchItemRequestOptions requestOptions)
Deprecated.
|
static <TContext> CosmosItemOperation |
getPatchItemOperation(String id,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations,
BulkPatchItemRequestOptions requestOptions,
TContext context)
Deprecated.
|
static <TContext> CosmosItemOperation |
getPatchItemOperation(String id,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations,
TContext context)
Deprecated.
|
static CosmosItemOperation |
getReadItemOperation(String id,
PartitionKey partitionKey)
Deprecated.
|
static CosmosItemOperation |
getReadItemOperation(String id,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions)
Deprecated.
|
static <TContext> CosmosItemOperation |
getReadItemOperation(String id,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions,
TContext context)
Deprecated.
|
static <TContext> CosmosItemOperation |
getReadItemOperation(String id,
PartitionKey partitionKey,
TContext context)
Deprecated.
|
static <T> CosmosItemOperation |
getReplaceItemOperation(String id,
T item,
PartitionKey partitionKey)
Deprecated.
|
static <T> CosmosItemOperation |
getReplaceItemOperation(String id,
T item,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions)
Deprecated.
|
static <T,TContext> |
getReplaceItemOperation(String id,
T item,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions,
TContext context)
Deprecated.
|
static <T,TContext> |
getReplaceItemOperation(String id,
T item,
PartitionKey partitionKey,
TContext context)
Deprecated.
|
static <T> CosmosItemOperation |
getUpsertItemOperation(T item,
PartitionKey partitionKey)
Deprecated.
|
static <T> CosmosItemOperation |
getUpsertItemOperation(T item,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions)
Deprecated.
|
static <T,TContext> |
getUpsertItemOperation(T item,
PartitionKey partitionKey,
BulkItemRequestOptions requestOptions,
TContext context)
Deprecated.
|
static <T,TContext> |
getUpsertItemOperation(T item,
PartitionKey partitionKey,
TContext context)
Deprecated.
|
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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") @Deprecated 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. All rights reserved.