public final class PartitionKeyDefinition extends Object
Constructor and Description |
---|
PartitionKeyDefinition()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PartitionKind |
getKind()
Sets the partition algorithm used to calculate the partition id given a partition key.
|
List<String> |
getPaths()
Gets the item property paths for the partition key.
|
PartitionKeyDefinitionVersion |
getVersion()
Gets version.
|
PartitionKeyDefinition |
setKind(PartitionKind kind)
Sets the partition algorithm used to calculate the partition id given a partition key.
|
PartitionKeyDefinition |
setPaths(List<String> paths)
Sets the item property paths for the partition key.
|
PartitionKeyDefinition |
setVersion(PartitionKeyDefinitionVersion version)
Sets version.
|
public PartitionKeyDefinition()
public PartitionKind getKind()
public PartitionKeyDefinition setKind(PartitionKind kind)
kind
- the partition algorithm.public PartitionKeyDefinitionVersion getVersion()
PartitionKeyDefinitionVersion
public PartitionKeyDefinition setVersion(PartitionKeyDefinitionVersion version)
version
- the versionpublic List<String> getPaths()
public PartitionKeyDefinition setPaths(List<String> paths)
paths
- the paths to item properties that form the partition key.IllegalArgumentException
- thrown if an error occursCopyright © 2021 Microsoft Corporation. All rights reserved.