Class ContainerPartitionKey
- java.lang.Object
-
- com.microsoft.azure.management.cosmosdb.ContainerPartitionKey
-
public class ContainerPartitionKey extends Object
The configuration of the partition key to be used for partitioning data into multiple partitions.
-
-
Constructor Summary
Constructors Constructor Description ContainerPartitionKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartitionKindkind()Get indicates the kind of algorithm used for partitioning.List<String>paths()Get list of paths using which data within the container can be partitioned.ContainerPartitionKeywithKind(PartitionKind kind)Set indicates the kind of algorithm used for partitioning.ContainerPartitionKeywithPaths(List<String> paths)Set list of paths using which data within the container can be partitioned.
-
-
-
Method Detail
-
paths
public List<String> paths()
Get list of paths using which data within the container can be partitioned.- Returns:
- the paths value
-
withPaths
public ContainerPartitionKey withPaths(List<String> paths)
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
public PartitionKind kind()
Get indicates the kind of algorithm used for partitioning. Possible values include: 'Hash', 'Range'.- Returns:
- the kind value
-
withKind
public ContainerPartitionKey withKind(PartitionKind kind)
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.
-
-