public final class PartitionKeyDefinition extends JsonSerializable
Constructor and Description |
---|
PartitionKeyDefinition()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PartitionKind |
kind()
Sets the partition algorithm used to calculate the partition id given a partition key.
|
PartitionKeyDefinition |
kind(PartitionKind kind)
Sets the partition algorithm used to calculate the partition id given a partition key.
|
List<String> |
paths()
Gets the document property paths for the partition key.
|
PartitionKeyDefinition |
paths(List<String> paths)
Sets the document property paths for the partition key.
|
PartitionKeyDefinitionVersion |
version() |
PartitionKeyDefinition |
version(PartitionKeyDefinitionVersion version) |
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getString, has, toJson, toJson, toObject, toString
public PartitionKeyDefinition()
public PartitionKind kind()
public PartitionKeyDefinition kind(PartitionKind kind)
kind
- the partition algorithm.public PartitionKeyDefinitionVersion version()
public PartitionKeyDefinition version(PartitionKeyDefinitionVersion version)
public List<String> paths()
public PartitionKeyDefinition paths(List<String> paths)
paths
- the paths to document properties that form the partition key.Copyright © 2019. All rights reserved.