Class ContainerPartitionKey
java.lang.Object
com.microsoft.azure.management.cosmosdb.ContainerPartitionKey
The configuration of the partition key to be used for partitioning data into
multiple partitions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionkind()
Get indicates the kind of algorithm used for partitioning.paths()
Get list of paths using which data within the container can be partitioned.version()
Get indicates the version of the partition key definition.withKind
(PartitionKind kind) Set indicates the kind of algorithm used for partitioning.Set list of paths using which data within the container can be partitioned.withVersion
(Integer version) Set indicates the version of the partition key definition.
-
Constructor Details
-
ContainerPartitionKey
public ContainerPartitionKey()
-
-
Method Details
-
paths
Get list of paths using which data within the container can be partitioned.- Returns:
- the paths value
-
withPaths
Set list of paths using which data within the container can be partitioned.- Parameters:
paths
- the paths value to set- Returns:
- the ContainerPartitionKey object itself.
-
kind
Get indicates the kind of algorithm used for partitioning. Possible values include: 'Hash', 'Range'.- Returns:
- the kind value
-
withKind
Set indicates the kind of algorithm used for partitioning. Possible values include: 'Hash', 'Range'.- Parameters:
kind
- the kind value to set- Returns:
- the ContainerPartitionKey object itself.
-
version
Get indicates the version of the partition key definition.- Returns:
- the version value
-
withVersion
Set indicates the version of the partition key definition.- Parameters:
version
- the version value to set- Returns:
- the ContainerPartitionKey object itself.
-