| 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> Mono<CosmosItemResponse<T>> |
CosmosAsyncContainer.createItem(T item,
CosmosItemRequestOptions options)
Creates a Cosmos item.
|
<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,
PartitionKey partitionKey,
CosmosItemRequestOptions options)
Creates an 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.
|
Mono<CosmosItemResponse<Object>> |
CosmosAsyncContainer.deleteItem(String itemId,
PartitionKey partitionKey,
CosmosItemRequestOptions options)
Deletes the item.
|
CosmosItemResponse<Object> |
CosmosContainer.deleteItem(String itemId,
PartitionKey partitionKey,
CosmosItemRequestOptions options)
Deletes an item in the current container.
|
<T> Mono<CosmosItemResponse<Object>> |
CosmosAsyncContainer.deleteItem(T item,
CosmosItemRequestOptions options)
Deletes the item.
|
<T> CosmosItemResponse<Object> |
CosmosContainer.deleteItem(T item,
CosmosItemRequestOptions options)
Deletes an item in the current container.
|
<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.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.replaceItem(T item,
String itemId,
PartitionKey partitionKey,
CosmosItemRequestOptions options)
Replaces an item with the passed in item.
|
<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.upsertItem(T item,
CosmosItemRequestOptions options)
Upserts an 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,
PartitionKey partitionKey,
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Copyright © 2020 Microsoft Corporation. All rights reserved.