Uses of Class
com.azure.cosmos.models.PartitionKey
Package
Description
This package provides interfaces for interacting with Azure Cosmos DB.
This package provides rest contracts for interacting with Azure Cosmos DB SQL APIs.
-
Uses of PartitionKey in com.azure.cosmos
Modifier and TypeMethodDescription<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.CosmosAsyncContainer.deleteAllItemsByPartitionKey
(PartitionKey partitionKey, CosmosItemRequestOptions options) Deletes all items in the Container with the specified partitionKey value.CosmosContainer.deleteAllItemsByPartitionKey
(PartitionKey partitionKey, CosmosItemRequestOptions options) Deletes all items in the Container with the specified partitionKey value.CosmosAsyncContainer.deleteItem
(String itemId, PartitionKey partitionKey) Deletes an item.CosmosAsyncContainer.deleteItem
(String itemId, PartitionKey partitionKey, CosmosItemRequestOptions options) Deletes the item.CosmosContainer.deleteItem
(String itemId, PartitionKey partitionKey, CosmosItemRequestOptions options) Deletes an item in the current container.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.patchItem
(String itemId, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, CosmosPatchItemRequestOptions options, Class<T> itemType) Run partial update that modifies specific properties or fields of the item without replacing the entire item.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.patchItem
(String itemId, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, Class<T> itemType) Run partial update that modifies specific properties or fields of the item without replacing the entire item.<T> CosmosItemResponse<T>
CosmosContainer.patchItem
(String itemId, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, CosmosPatchItemRequestOptions options, Class<T> itemType) Run partial update that modifies specific properties or fields of the item without replacing the entire item.<T> CosmosItemResponse<T>
CosmosContainer.patchItem
(String itemId, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, Class<T> itemType) Run partial update that modifies specific properties or fields of the item without replacing the entire item.<T> CosmosPagedFlux<T>
CosmosAsyncContainer.readAllItems
(PartitionKey partitionKey, CosmosQueryRequestOptions options, Class<T> classType) Reads all the items of a logical partition<T> CosmosPagedFlux<T>
CosmosAsyncContainer.readAllItems
(PartitionKey partitionKey, Class<T> classType) Reads all the items of a logical partition<T> CosmosPagedIterable<T>
CosmosContainer.readAllItems
(PartitionKey partitionKey, CosmosQueryRequestOptions options, Class<T> classType) Reads all the items of a logical partition returning the results asCosmosPagedIterable
.<T> CosmosPagedIterable<T>
CosmosContainer.readAllItems
(PartitionKey partitionKey, Class<T> classType) Reads all the items of a logical partition returning the results asCosmosPagedIterable
.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.readItem
(String itemId, PartitionKey partitionKey, CosmosItemRequestOptions options, Class<T> itemType) Reads an item by itemId using a configuredCosmosItemRequestOptions
.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.readItem
(String itemId, PartitionKey partitionKey, Class<T> itemType) Reads an item by itemId.<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> CosmosItemResponse<T>
CosmosContainer.readItem
(String itemId, PartitionKey partitionKey, Class<T> itemType) Reads an item in the current container.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.replaceItem
(T item, String itemId, PartitionKey partitionKey) Replaces an existing item in a container with a new item.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.replaceItem
(T item, String itemId, PartitionKey partitionKey, CosmosItemRequestOptions options) Replaces an existing item in a container with a new item.<T> CosmosItemResponse<T>
CosmosContainer.replaceItem
(T item, String itemId, PartitionKey partitionKey, CosmosItemRequestOptions options) Replaces an existing item in a container with a new item.<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 an item Cosmos sync item while specifying additional options. -
Uses of PartitionKey in com.azure.cosmos.models
Modifier and TypeFieldDescriptionstatic final PartitionKey
PartitionKey.NONE
Partition key that represents no partition key.Modifier and TypeMethodDescriptionPartitionKeyBuilder.build()
Builds a new instance of the type PartitionKey with the specified Partition Key values.static PartitionKey
PartitionKey.fromItem
(Map<String, Object> item, PartitionKeyDefinition partitionKeyDefinition) Returns the PartitionKey extracted from the itemstatic PartitionKey
PartitionKey.fromObjectArray
(Object[] values, boolean strict) Returns the PartitionKey from an array of objects that is generated by PartitionKeyInternalCosmosConflictRequestOptions.getPartitionKey()
Gets the partition key associated with the request in the Azure Cosmos DB service.CosmosItemIdentity.getPartitionKey()
Gets the partition keyCosmosQueryRequestOptions.getPartitionKey()
Gets the partition key used to identify the current request's target partition.CosmosStoredProcedureRequestOptions.getPartitionKey()
Gets the partition key used to identify the current request's target partition.CosmosBatch.getPartitionKeyValue()
Return the partition key for this batch.CosmosItemOperation.getPartitionKeyValue()
CosmosPermissionProperties.getResourcePartitionKey()
Gets the resource partition key associated with this permission object.Modifier and TypeMethodDescriptionstatic CosmosBatch
CosmosBatch.createCosmosBatch
(PartitionKey partitionKey) Initializes a new instance ofCosmosBatch
that will contain operations to be performed across multiple items in the container with the provided partition key in a transactional mannerstatic FeedRange
FeedRange.forLogicalPartition
(PartitionKey partitionKey) Creates a range for a certain logical partitionstatic <T> CosmosItemOperation
CosmosBulkOperations.getCreateItemOperation
(T item, PartitionKey partitionKey) Instantiate an operation for Creating item in Bulk execution.static <T> CosmosItemOperation
CosmosBulkOperations.getCreateItemOperation
(T item, PartitionKey partitionKey, CosmosBulkItemRequestOptions requestOptions) Instantiate an operation for Creating item in Bulk execution.static <T,
TContext>
CosmosItemOperationCosmosBulkOperations.getCreateItemOperation
(T item, PartitionKey partitionKey, CosmosBulkItemRequestOptions requestOptions, TContext context) Instantiate an operation for Creating item in Bulk execution.static <T,
TContext>
CosmosItemOperationCosmosBulkOperations.getCreateItemOperation
(T item, PartitionKey partitionKey, TContext context) Instantiate an operation for Creating item in Bulk execution.static CosmosItemOperation
CosmosBulkOperations.getDeleteItemOperation
(String id, PartitionKey partitionKey) Instantiate an operation for deleting item in Bulk execution.static CosmosItemOperation
CosmosBulkOperations.getDeleteItemOperation
(String id, PartitionKey partitionKey, CosmosBulkItemRequestOptions requestOptions) Instantiate an operation for deleting item in Bulk execution.static <TContext> CosmosItemOperation
CosmosBulkOperations.getDeleteItemOperation
(String id, PartitionKey partitionKey, CosmosBulkItemRequestOptions requestOptions, TContext context) Instantiate an operation for deleting item in Bulk execution.static <TContext> CosmosItemOperation
CosmosBulkOperations.getDeleteItemOperation
(String id, PartitionKey partitionKey, TContext context) Instantiate an operation for deleting item in Bulk execution.static CosmosItemOperation
CosmosBulkOperations.getPatchItemOperation
(String id, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations) Instantiate an operation for a patch in Bulk execution.static CosmosItemOperation
CosmosBulkOperations.getPatchItemOperation
(String id, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, CosmosBulkPatchItemRequestOptions requestOptions) Instantiate an operation for a patch in Bulk execution.static <TContext> CosmosItemOperation
CosmosBulkOperations.getPatchItemOperation
(String id, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, CosmosBulkPatchItemRequestOptions requestOptions, TContext context) Instantiate an operation for a patch in Bulk execution.static <TContext> CosmosItemOperation
CosmosBulkOperations.getPatchItemOperation
(String id, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, TContext context) Instantiate an operation for a patch in Bulk execution.static CosmosItemOperation
CosmosBulkOperations.getReadItemOperation
(String id, PartitionKey partitionKey) Instantiate an operation for read item in Bulk execution.static CosmosItemOperation
CosmosBulkOperations.getReadItemOperation
(String id, PartitionKey partitionKey, CosmosBulkItemRequestOptions requestOptions) Instantiate an operation for read item in Bulk execution.static <TContext> CosmosItemOperation
CosmosBulkOperations.getReadItemOperation
(String id, PartitionKey partitionKey, CosmosBulkItemRequestOptions requestOptions, TContext context) Instantiate an operation for read item in Bulk execution.static <TContext> CosmosItemOperation
CosmosBulkOperations.getReadItemOperation
(String id, PartitionKey partitionKey, TContext context) Instantiate an operation for read item in Bulk execution.static <T> CosmosItemOperation
CosmosBulkOperations.getReplaceItemOperation
(String id, T item, PartitionKey partitionKey) Instantiate an operation for replace item in Bulk execution.static <T> CosmosItemOperation
CosmosBulkOperations.getReplaceItemOperation
(String id, T item, PartitionKey partitionKey, CosmosBulkItemRequestOptions requestOptions) Instantiate an operation for replace item in Bulk execution.static <T,
TContext>
CosmosItemOperationCosmosBulkOperations.getReplaceItemOperation
(String id, T item, PartitionKey partitionKey, CosmosBulkItemRequestOptions requestOptions, TContext context) Instantiate an operation for replace item in Bulk execution.static <T,
TContext>
CosmosItemOperationCosmosBulkOperations.getReplaceItemOperation
(String id, T item, PartitionKey partitionKey, TContext context) Instantiate an operation for replace item in Bulk execution.static <T> CosmosItemOperation
CosmosBulkOperations.getUpsertItemOperation
(T item, PartitionKey partitionKey) Instantiate an operation for upsert item in Bulk execution.static <T> CosmosItemOperation
CosmosBulkOperations.getUpsertItemOperation
(T item, PartitionKey partitionKey, CosmosBulkItemRequestOptions requestOptions) Instantiate an operation for upsert item in Bulk execution.static <T,
TContext>
CosmosItemOperationCosmosBulkOperations.getUpsertItemOperation
(T item, PartitionKey partitionKey, CosmosBulkItemRequestOptions requestOptions, TContext context) Instantiate an operation for upsert item in Bulk execution.static <T,
TContext>
CosmosItemOperationCosmosBulkOperations.getUpsertItemOperation
(T item, PartitionKey partitionKey, TContext context) Instantiate an operation for upsert item in Bulk execution.CosmosConflictRequestOptions.setPartitionKey
(PartitionKey partitionKey) Sets the partition key associated with the request in the Azure Cosmos DB service.CosmosQueryRequestOptions.setPartitionKey
(PartitionKey partitionkey) Sets the partition key used to identify the current request's target partition.CosmosStoredProcedureRequestOptions.setPartitionKey
(PartitionKey partitionKey) Sets the partition key used to identify the current request's target partition.CosmosPermissionProperties.setResourcePartitionKey
(PartitionKey partitionKey) Sets the resource partition key associated with this permission object.ModifierConstructorDescriptionCosmosConflictRequestOptions
(PartitionKey partitionKey) Creates a newCosmosConflictRequestOptions
object.CosmosItemIdentity
(PartitionKey partitionKey, String id) Instantiates an instance of the CosmosItemIdentity class