public final class PartitionKeyDefinition extends JsonSerializable
| Constructor and Description |
|---|
PartitionKeyDefinition()
Constructor.
|
PartitionKeyDefinition(org.json.JSONObject jsonObject)
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.
|
Collection<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(Collection<String> paths)
Sets the document property paths for the partition key.
|
get, getBoolean, getCollection, getCollection, getDouble, getHashMap, getInt, 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 PartitionKeyDefinition(org.json.JSONObject jsonObject)
jsonObject - the JSON object that represents the partition key definition.public PartitionKind getKind()
public void setKind(PartitionKind kind)
kind - the partition algorithm.public Collection<String> getPaths()
public void setPaths(Collection<String> paths)
paths - the paths to document properties that form the partition key.Copyright © 2018. All rights reserved.