Uses of Class
com.azure.cosmos.models.PartitionKeyDefinition
Package
Description
This package provides rest contracts for interacting with Azure Cosmos DB SQL APIs.
-
Uses of PartitionKeyDefinition in com.azure.cosmos.models
Modifier and TypeMethodDescriptionCosmosContainerProperties.getPartitionKeyDefinition()
Gets the containers's partition key definition.PartitionKeyDefinition.setKind
(PartitionKind kind) Sets the partition algorithm used to calculate the partition id given a partition key.Sets the item property paths for the partition key.PartitionKeyDefinition.setVersion
(PartitionKeyDefinitionVersion version) Sets version.Modifier and TypeMethodDescriptionstatic PartitionKey
PartitionKey.fromItem
(Map<String, Object> item, PartitionKeyDefinition partitionKeyDefinition) Returns the PartitionKey extracted from the itemCosmosContainerProperties.setPartitionKeyDefinition
(PartitionKeyDefinition partitionKeyDefinition) Sets the containers's partition key definition.ModifierConstructorDescriptionCosmosContainerProperties
(String id, PartitionKeyDefinition partitionKeyDefinition) Constructor