你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PartitionKey Class
- java.
lang. Object - com.
microsoft. azure. documentdb. PartitionKey
- com.
public class PartitionKey
Represents a partition key value in the Azure Cosmos DB database service. A partition key identifies the partition where the document is stored in.
Constructor Summary
Constructor | Description |
---|---|
PartitionKey(Object key) |
Constructor. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Partition |
FromJsonString(String jsonString)
Create a new instance of the Partition |
com.microsoft.azure.documentdb.internal.routing.PartitionKeyInternal | getInternalPartitionKey() |
java.lang.String |
toString()
Serialize the Partition |
Methods inherited from java.lang.Object
Constructor Details
PartitionKey
public PartitionKey(Object key)
Constructor. Create a new instance of the PartitionKey object.
Parameters:
Method Details
FromJsonString
public static PartitionKey FromJsonString(String jsonString)
Create a new instance of the PartitionKey object from a serialized JSON string.
Parameters:
Returns:
getInternalPartitionKey
public PartitionKeyInternal getInternalPartitionKey()
toString
public String toString()
Serialize the PartitionKey object to a JSON string.
Overrides:
PartitionKey.toString()Returns: