Package | Description |
---|---|
com.azure.cosmos |
This package provides interfaces for interacting with Azure Cosmos DB.
|
Modifier and Type | Method and Description |
---|---|
<T> CosmosPatchOperations |
CosmosPatchOperations.add(String path,
T value)
This performs one of the following functions, depending upon what the target location references:
1.
|
static CosmosPatchOperations |
CosmosPatchOperations.create()
Initializes a new instance of
CosmosPatchOperations that will contain operations to be performed on a item atomically. |
CosmosPatchOperations |
CosmosPatchOperations.increment(String path,
double value)
This increment the value at the target location.
|
CosmosPatchOperations |
CosmosPatchOperations.increment(String path,
long value)
This increment the value at the target location.
|
CosmosPatchOperations |
CosmosPatchOperations.remove(String path)
This removes the value at the target location.
|
<T> CosmosPatchOperations |
CosmosPatchOperations.replace(String path,
T value)
This replaces the value at the target location with a new value.
|
<T> CosmosPatchOperations |
CosmosPatchOperations.set(String path,
T value)
This sets the value at the target location with a new value.
|
Modifier and Type | Method and Description |
---|---|
static CosmosItemOperation |
BulkOperations.getPatchItemOperation(String id,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations)
Instantiate an operation for a patch in Bulk execution.
|
static CosmosItemOperation |
BulkOperations.getPatchItemOperation(String id,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations,
BulkPatchItemRequestOptions requestOptions)
Instantiate an operation for a patch in Bulk execution.
|
static <TContext> CosmosItemOperation |
BulkOperations.getPatchItemOperation(String id,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations,
BulkPatchItemRequestOptions requestOptions,
TContext context)
Instantiate an operation for a patch in Bulk execution.
|
static <TContext> CosmosItemOperation |
BulkOperations.getPatchItemOperation(String id,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations,
TContext context)
Instantiate an operation for a patch in Bulk execution.
|
<T> CosmosItemResponse<T> |
CosmosContainer.patchItem(String itemId,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations,
Class<T> itemType)
Run patch operations on an Item.
|
<T> Mono<CosmosItemResponse<T>> |
CosmosAsyncContainer.patchItem(String itemId,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations,
Class<T> itemType)
Run patch operations on an Item.
|
<T> CosmosItemResponse<T> |
CosmosContainer.patchItem(String itemId,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations,
CosmosPatchItemRequestOptions options,
Class<T> itemType)
Run patch operations on an Item.
|
<T> Mono<CosmosItemResponse<T>> |
CosmosAsyncContainer.patchItem(String itemId,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations,
CosmosPatchItemRequestOptions options,
Class<T> itemType)
Run patch operations on an Item.
|
CosmosItemOperation |
TransactionalBatch.patchItemOperation(String id,
CosmosPatchOperations cosmosPatchOperations)
Adds a patch operations for an item into the batch.
|
CosmosItemOperation |
TransactionalBatch.patchItemOperation(String id,
CosmosPatchOperations cosmosPatchOperations,
TransactionalBatchPatchItemRequestOptions requestOptions)
Adds a patch operations for an item into the batch.
|
Copyright © 2021 Microsoft Corporation. All rights reserved.