Package | Description |
---|---|
com.azure.cosmos |
This package provides interfaces for interacting with Azure Cosmos DB.
|
com.azure.cosmos.models |
This package provides rest contracts for interacting with Azure Cosmos DB SQL APIs.
|
Modifier and Type | Method and Description |
---|---|
<T> CosmosItemResponse<T> |
CosmosContainer.createItem(T item,
CosmosItemRequestOptions options)
Creates a new item synchronously and returns its respective Cosmos item response
while specifying additional options.
|
<T> Mono<CosmosItemResponse<T>> |
CosmosAsyncContainer.createItem(T item,
CosmosItemRequestOptions options)
Creates a Cosmos item.
|
<T> CosmosItemResponse<T> |
CosmosContainer.createItem(T item,
PartitionKey partitionKey,
CosmosItemRequestOptions options)
Creates a new item synchronously and returns its respective Cosmos item response
while specifying additional options.
|
<T> Mono<CosmosItemResponse<T>> |
CosmosAsyncContainer.createItem(T item,
PartitionKey partitionKey,
CosmosItemRequestOptions options)
Creates an item.
|
CosmosItemResponse<Object> |
CosmosContainer.deleteItem(String itemId,
PartitionKey partitionKey,
CosmosItemRequestOptions options)
Deletes an item in the current container.
|
Mono<CosmosItemResponse<Object>> |
CosmosAsyncContainer.deleteItem(String itemId,
PartitionKey partitionKey,
CosmosItemRequestOptions options)
Deletes the item.
|
<T> CosmosItemResponse<Object> |
CosmosContainer.deleteItem(T item,
CosmosItemRequestOptions options)
Deletes an item in the current container.
|
<T> Mono<CosmosItemResponse<Object>> |
CosmosAsyncContainer.deleteItem(T item,
CosmosItemRequestOptions options)
Deletes the item.
|
<T> CosmosItemResponse<T> |
CosmosContainer.readItem(String itemId,
PartitionKey partitionKey,
CosmosItemRequestOptions options,
Class<T> itemType)
Reads an item in the current container while specifying additional options.
|
<T> Mono<CosmosItemResponse<T>> |
CosmosAsyncContainer.readItem(String itemId,
PartitionKey partitionKey,
CosmosItemRequestOptions options,
Class<T> itemType)
Reads an item using a configured
CosmosItemRequestOptions . |
<T> CosmosItemResponse<T> |
CosmosContainer.replaceItem(T item,
String itemId,
PartitionKey partitionKey,
CosmosItemRequestOptions options)
Replaces an item in the current container.
|
<T> Mono<CosmosItemResponse<T>> |
CosmosAsyncContainer.replaceItem(T item,
String itemId,
PartitionKey partitionKey,
CosmosItemRequestOptions options)
Replaces an item with the passed in item.
|
<T> CosmosItemResponse<T> |
CosmosContainer.upsertItem(T item,
CosmosItemRequestOptions options)
Upserts a item Cosmos sync item while specifying additional options.
|
<T> Mono<CosmosItemResponse<T>> |
CosmosAsyncContainer.upsertItem(T item,
CosmosItemRequestOptions options)
Upserts an item.
|
<T> CosmosItemResponse<T> |
CosmosContainer.upsertItem(T item,
PartitionKey partitionKey,
CosmosItemRequestOptions options)
Upserts a item Cosmos sync item while specifying additional options.
|
<T> Mono<CosmosItemResponse<T>> |
CosmosAsyncContainer.upsertItem(T item,
PartitionKey partitionKey,
CosmosItemRequestOptions options)
Upserts an item.
|
Modifier and Type | Class and Description |
---|---|
class |
CosmosPatchItemRequestOptions |
Modifier and Type | Method and Description |
---|---|
CosmosItemRequestOptions |
CosmosItemRequestOptions.setConsistencyLevel(ConsistencyLevel consistencyLevel)
Sets the consistency level required for the request.
|
CosmosItemRequestOptions |
CosmosItemRequestOptions.setContentResponseOnWriteEnabled(Boolean contentResponseOnWriteEnabled)
Sets the boolean to only return the headers and status code in Cosmos DB response
in case of Create, Update and Delete operations on CosmosItem.
|
CosmosItemRequestOptions |
CosmosItemRequestOptions.setDedicatedGatewayRequestOptions(DedicatedGatewayRequestOptions dedicatedGatewayRequestOptions)
Sets the Dedicated Gateway Request Options
|
CosmosItemRequestOptions |
CosmosItemRequestOptions.setIfMatchETag(String ifMatchETag)
Sets the If-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
CosmosItemRequestOptions |
CosmosItemRequestOptions.setIfNoneMatchETag(String ifNoneMatchETag)
Sets the If-None-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
CosmosItemRequestOptions |
CosmosItemRequestOptions.setIndexingDirective(IndexingDirective indexingDirective)
Sets the indexing directive (index, do not index etc).
|
CosmosItemRequestOptions |
CosmosItemRequestOptions.setPostTriggerInclude(List<String> postTriggerInclude)
Sets the triggers to be invoked after the operation.
|
CosmosItemRequestOptions |
CosmosItemRequestOptions.setPreTriggerInclude(List<String> preTriggerInclude)
Sets the triggers to be invoked before the operation.
|
CosmosItemRequestOptions |
CosmosItemRequestOptions.setSessionToken(String sessionToken)
Sets the token for use with session consistency.
|
CosmosItemRequestOptions |
CosmosItemRequestOptions.setThresholdForDiagnosticsOnTracer(Duration thresholdForDiagnosticsOnTracer)
Sets the thresholdForDiagnosticsOnTracer, if latency on CRUD operation is greater than this
diagnostics will be send to open telemetry exporter as events in tracer span of end to end CRUD api.
|
Copyright © 2021 Microsoft Corporation. All rights reserved.