Uses of Class com.azure.cosmos.models.PartitionKey (Azure SDK for Java Reference Documentation)
Jessica Wood
Published Feb 17, 2026
This package provides interfaces for interacting with Azure Cosmos DB.
This package provides rest contracts for interacting with Azure Cosmos DB SQL APIs.
Creates an item.
Creates a new item synchronously and returns its respective Cosmos item response while specifying additional options.
Deletes all items in the Container with the specified partitionKey value.
Deletes all items in the Container with the specified partitionKey value.
Deletes an item.
Deletes the item.
Deletes an item in the current container.
Run partial update that modifies specific properties or fields of the item without replacing the entire item.
Run partial update that modifies specific properties or fields of the item without replacing the entire item.
Run partial update that modifies specific properties or fields of the item without replacing the entire item.
Run partial update that modifies specific properties or fields of the item without replacing the entire item.
Reads all the items of a logical partition
Reads all the items of a logical partition
Reads an item by itemId.
Reads an item in the current container while specifying additional options.
Reads an item in the current container.
Replaces an existing item in a container with a new item.
Replaces an existing item in a container with a new item.
Replaces an existing item in a container with a new item.
Upserts an item.
Upserts an item Cosmos sync item while specifying additional options.
Partition key that represents no partition key.
PartitionKeyBuilder.build()Builds a new instance of the type PartitionKey with the specified Partition Key values.
Returns the PartitionKey extracted from the item
Returns the PartitionKey from an array of objects that is generated by PartitionKeyInternal
Gets the partition key associated with the request in the Azure Cosmos DB service.
Gets the partition key
Gets the partition key used to identify the current request's target partition.
Gets the partition key used to identify the current request's target partition.
Return the partition key for this batch.
Gets the resource partition key associated with this permission object.
Initializes a new instance ofCosmosBatchthat will contain operations to be performed across multiple items in the container with the provided partition key in a transactional mannerCreates a range for a certain logical partition
Instantiate an operation for Creating item in Bulk execution.
Instantiate an operation for Creating item in Bulk execution.
Instantiate an operation for Creating item in Bulk execution.
Instantiate an operation for Creating item in Bulk execution.
Instantiate an operation for deleting item in Bulk execution.
Instantiate an operation for deleting item in Bulk execution.
Instantiate an operation for deleting item in Bulk execution.
Instantiate an operation for deleting item in Bulk execution.
Instantiate an operation for a patch in Bulk execution.
Instantiate an operation for a patch in Bulk execution.
Instantiate an operation for a patch in Bulk execution.
Instantiate an operation for a patch in Bulk execution.
Instantiate an operation for read item in Bulk execution.
Instantiate an operation for read item in Bulk execution.
Instantiate an operation for read item in Bulk execution.
Instantiate an operation for read item in Bulk execution.
Instantiate an operation for replace item in Bulk execution.
Instantiate an operation for replace item in Bulk execution.
Instantiate an operation for replace item in Bulk execution.
Instantiate an operation for replace item in Bulk execution.
Instantiate an operation for upsert item in Bulk execution.
Instantiate an operation for upsert item in Bulk execution.
Instantiate an operation for upsert item in Bulk execution.
Instantiate an operation for upsert item in Bulk execution.
Sets the partition key associated with the request in the Azure Cosmos DB service.
Sets the partition key used to identify the current request's target partition.
Sets the partition key used to identify the current request's target partition.
Sets the resource partition key associated with this permission object.
Instantiates an instance of the CosmosItemIdentity class