public final class PartitionKeyDefinition extends JsonSerializable
| Constructor and Description |
|---|
PartitionKeyDefinition()
Constructor.
|
PartitionKeyDefinition(String jsonString)
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() |
void |
setKind(PartitionKind kind)
Sets the partition algorithm used to calculate the partition id given a partition key.
|
void |
setPaths(List<String> paths)
Sets the document property paths for the partition key.
|
void |
setVersion(PartitionKeyDefinitionVersion version) |
get, getBoolean, getCollection, getCollection, getDouble, getHashMap, getInt, getList, getLogger, getLong, getMapper, getObject, getObject, getObjectByPath, getString, has, remove, set, toJson, toJson, toObject, toStringpublic PartitionKeyDefinition()
public PartitionKeyDefinition(String jsonString)
jsonString - the JSON string that represents the partition key definition.public PartitionKind getKind()
public void setKind(PartitionKind kind)
kind - the partition algorithm.public PartitionKeyDefinitionVersion getVersion()
public void setVersion(PartitionKeyDefinitionVersion version)
public List<String> getPaths()
Copyright © 2020. All rights reserved.