PartitionKeyStatistics Class
- java.
lang. Object - Serializable
- JsonSerializable
- com.
microsoft. azure. documentdb. PartitionKeyStatistics
- com.
public class PartitionKeyStatistics extends JsonSerializable
Represents the statistics of a logical partition key in the Azure Cosmos DB service.
Constructor Summary
Constructor | Description |
---|---|
PartitionKeyStatistics(JSONObject jsonObject) |
Constructor. |
PartitionKeyStatistics(String jsonString) |
Initialize a PartitionKeyStatistics object using the input JSON string. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Partition |
getPartitionKey() |
long |
getSizeInKB()
Gets the sizeInKB property. |
String |
toString()
Serialize the PartitionKeyStatistics object to a JSON string. |
Inherited Members
Constructor Details
PartitionKeyStatistics
public PartitionKeyStatistics(JSONObject jsonObject)
Constructor.
Parameters:
PartitionKeyStatistics
public PartitionKeyStatistics(String jsonString)
Initialize a PartitionKeyStatistics object using the input JSON string.
Parameters:
Method Details
getPartitionKey
public PartitionKey getPartitionKey()
getSizeInKB
public long getSizeInKB()
Gets the sizeInKB property.
Returns:
toString
public String toString()
Serialize the PartitionKeyStatistics object to a JSON string.
Returns:
Applies to
Azure SDK for Java