public final class PartitionKeyDefinition extends JsonSerializable
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 document property paths for the partition key.
|
PartitionKeyDefinitionVersion |
getVersion() |
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 document property paths for the partition key.
|
PartitionKeyDefinition |
setVersion(PartitionKeyDefinitionVersion version) |
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getString, has, toJson, toJson, toObject, toString
public PartitionKeyDefinition()
public PartitionKind getKind()
public PartitionKeyDefinition setKind(PartitionKind kind)
kind
- the partition algorithm.public PartitionKeyDefinitionVersion getVersion()
public PartitionKeyDefinition setVersion(PartitionKeyDefinitionVersion version)
public List<String> getPaths()
public PartitionKeyDefinition setPaths(List<String> paths)
paths
- the paths to document properties that form the partition key.IllegalArgumentException
- thrown if an error occursCopyright © 2020 Microsoft Corporation. All rights reserved.