Package com.azure.cosmos.models
Class PartitionKey
java.lang.Object
com.azure.cosmos.models.PartitionKey
Represents a partition key value in the Azure Cosmos DB database service. A
partition key identifies the partition where the item is stored in.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PartitionKey
Partition key that represents no partition key. -
Constructor Summary
-
Method Summary
-
Field Details
-
NONE
Partition key that represents no partition key.
-
-
Constructor Details
-
PartitionKey
Constructor. CREATE a new instance of the PartitionKey object.- Parameters:
key
- the value of the partition key.
-
-
Method Details
-
toString
Serialize the PartitionKey object to a JSON string. -
equals
Overrides the Equal operator for object comparisons between two instances ofPartitionKey
-
hashCode
public int hashCode()
-