Uses of Class
com.azure.cosmos.models.PartitionKey
Package
Description
This package provides interfaces for interacting with Azure Cosmos DB.
This package provides Encryption interfaces for interacting with Azure Cosmos DB.
This package provides rest contracts for interacting with Azure Cosmos DB SQL APIs.
This package contains the core classes of cosmos db, includes converters,
query generators and mapping to cosmos entities
This package contains the support, query and config classes of setting up cosmosdb repositories
This package contains the support classes of setting up cosmosdb repositories and factories
-
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 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> CosmosItemResponse<T>
CosmosContainer.patchItem
(String itemId, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, Class<T> itemType) Run patch operations on an 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 using a configuredCosmosItemRequestOptions
.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.readItem
(String itemId, PartitionKey partitionKey, Class<T> itemType) Reads an 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> 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 item with the passed in item.<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, 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. -
Uses of PartitionKey in com.azure.cosmos.encryption
Modifier and TypeMethodDescription<T> Mono<CosmosItemResponse<T>>
CosmosEncryptionAsyncContainer.createItem
(T item, PartitionKey partitionKey, CosmosItemRequestOptions requestOptions) Creates an item.<T> CosmosItemResponse<T>
CosmosEncryptionContainer.createItem
(T item, PartitionKey partitionKey, CosmosItemRequestOptions requestOptions) Creates a new item synchronously and returns its respective Cosmos item response while specifying additional options.CosmosEncryptionAsyncContainer.deleteItem
(String itemId, PartitionKey partitionKey) Deletes an item.CosmosEncryptionAsyncContainer.deleteItem
(String itemId, PartitionKey partitionKey, CosmosItemRequestOptions requestOptions) Deletes the item.CosmosEncryptionContainer.deleteItem
(String itemId, PartitionKey partitionKey, CosmosItemRequestOptions requestOptions) Deletes an item in the current container.<T> Mono<CosmosItemResponse<T>>
CosmosEncryptionAsyncContainer.patchItem
(String itemId, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, CosmosPatchItemRequestOptions options, Class<T> itemType) Run patch operations on an Item.<T> CosmosItemResponse<T>
CosmosEncryptionContainer.patchItem
(String itemId, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, CosmosPatchItemRequestOptions options, Class<T> itemType) Run patch operations on an Item.<T> Mono<CosmosItemResponse<T>>
CosmosEncryptionAsyncContainer.readItem
(String id, PartitionKey partitionKey, CosmosItemRequestOptions requestOptions, Class<T> classType) Reads an item using a configuredCosmosItemRequestOptions
.<T> Mono<CosmosItemResponse<T>>
CosmosEncryptionAsyncContainer.readItem
(String id, PartitionKey partitionKey, Class<T> classType) Reads an item.<T> CosmosItemResponse<T>
CosmosEncryptionContainer.readItem
(String id, PartitionKey partitionKey, CosmosItemRequestOptions requestOptions, Class<T> classType) Reads an item in the current container while specifying additional options.<T> CosmosItemResponse<T>
CosmosEncryptionContainer.readItem
(String id, PartitionKey partitionKey, Class<T> classType) Reads an item in the current container.<T> Mono<CosmosItemResponse<T>>
CosmosEncryptionAsyncContainer.replaceItem
(T item, String itemId, PartitionKey partitionKey) Replaces an item with the passed in item and encrypts the requested fields.<T> Mono<CosmosItemResponse<T>>
CosmosEncryptionAsyncContainer.replaceItem
(T item, String itemId, PartitionKey partitionKey, CosmosItemRequestOptions requestOptions) Replaces an item with the passed in item and encrypts the requested fields.<T> CosmosItemResponse<T>
CosmosEncryptionContainer.replaceItem
(T item, String itemId, PartitionKey partitionKey, CosmosItemRequestOptions requestOptions) Replaces an item in the current container.<T> Mono<CosmosItemResponse<T>>
CosmosEncryptionAsyncContainer.upsertItem
(T item, PartitionKey partitionKey, CosmosItemRequestOptions requestOptions) Upserts an item.<T> CosmosItemResponse<T>
CosmosEncryptionContainer.upsertItem
(T item, PartitionKey partitionKey, CosmosItemRequestOptions requestOptions) Upserts a 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.CosmosConflictRequestOptions.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 -
Uses of PartitionKey in com.azure.spring.data.cosmos.core
Modifier and TypeMethodDescriptionvoid
CosmosOperations.deleteById
(String containerName, Object id, PartitionKey partitionKey) Delete an item by idvoid
CosmosTemplate.deleteById
(String containerName, Object id, PartitionKey partitionKey) Deletes the item by id and partition key.ReactiveCosmosOperations.deleteById
(String containerName, Object id, PartitionKey partitionKey) Delete an item by idReactiveCosmosTemplate.deleteById
(String containerName, Object id, PartitionKey partitionKey) Deletes the item with id and partition key.<T> Iterable<T>
CosmosOperations.findAll
(PartitionKey partitionKey, Class<T> domainType) Find the DocumentQuery, find all the items specified by domain type in the given container.<T> Iterable<T>
CosmosTemplate.findAll
(PartitionKey partitionKey, Class<T> domainType) <T> Flux<T>
ReactiveCosmosOperations.findAll
(PartitionKey partitionKey, Class<T> domainType) Find all items in a given container with partition key<T> Flux<T>
ReactiveCosmosTemplate.findAll
(PartitionKey partitionKey, Class<T> domainType) <T> T
CosmosOperations.findById
(Object id, Class<T> domainType, PartitionKey partitionKey) Finds item by id<T> T
CosmosTemplate.findById
(Object id, Class<T> domainType, PartitionKey partitionKey) <T> Mono<T>
ReactiveCosmosOperations.findById
(Object id, Class<T> domainType, PartitionKey partitionKey) Find by id<T> Mono<T>
ReactiveCosmosTemplate.findById
(Object id, Class<T> domainType, PartitionKey partitionKey) Find by id<T> T
CosmosOperations.insert
(String containerName, T objectToSave, PartitionKey partitionKey) Inserts item<T> T
CosmosOperations.insert
(T objectToSave, PartitionKey partitionKey) Inserts item<T> T
CosmosTemplate.insert
(String containerName, T objectToSave, PartitionKey partitionKey) Inserts item into the given container<T> T
CosmosTemplate.insert
(T objectToSave, PartitionKey partitionKey) Inserts item<T> Mono<T>
ReactiveCosmosOperations.insert
(String containerName, T objectToSave, PartitionKey partitionKey) Insert<T> Mono<T>
ReactiveCosmosOperations.insert
(T objectToSave, PartitionKey partitionKey) Insert<T> Mono<T>
ReactiveCosmosTemplate.insert
(String containerName, T objectToSave, PartitionKey partitionKey) Insert<T> Mono<T>
ReactiveCosmosTemplate.insert
(T objectToSave, PartitionKey partitionKey) Insert -
Uses of PartitionKey in com.azure.spring.data.cosmos.repository
Modifier and TypeMethodDescriptionvoid
CosmosRepository.deleteById
(ID id, PartitionKey partitionKey) Deletes an entity by its id and partition key.ReactiveCosmosRepository.deleteById
(K id, PartitionKey partitionKey) Deletes an entity by its id and partition key.CosmosRepository.findAll
(PartitionKey partitionKey) Returns list of items in a specific partitionReactiveCosmosRepository.findAll
(PartitionKey partitionKey) Returns Flux of items in a specific partitionCosmosRepository.findById
(ID id, PartitionKey partitionKey) Retrieves an entity by its id.ReactiveCosmosRepository.findById
(K id, PartitionKey partitionKey) Retrieves an entity by its id and partition key. -
Uses of PartitionKey in com.azure.spring.data.cosmos.repository.support
Modifier and TypeMethodDescriptionvoid
SimpleCosmosRepository.deleteById
(ID id, PartitionKey partitionKey) SimpleReactiveCosmosRepository.deleteById
(K id, PartitionKey partitionKey) SimpleCosmosRepository.findAll
(PartitionKey partitionKey) SimpleReactiveCosmosRepository.findAll
(PartitionKey partitionKey) SimpleCosmosRepository.findById
(ID id, PartitionKey partitionKey) SimpleReactiveCosmosRepository.findById
(K id, PartitionKey partitionKey)