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.
|
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.
|
get, getBoolean, getCollection, getCollection, getDouble, getHashMap, getInt, getList, getLogger, getLong, getMapper, getObject, getObject, getObjectByPath, getString, has, remove, set, toJson, toJson, toObject, toString
public 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 List<String> getPaths()
Copyright © 2019. All rights reserved.