PartitionKeyStatistics Class
- java.
lang. Object - com.
microsoft. azure. documentdb. JsonSerializable - com.
microsoft. azure. documentdb. PartitionKeyStatistics
- com.
- 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(String jsonString) |
Initialize a Partition |
PartitionKeyStatistics(JSONObject jsonObject) |
Constructor. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Partition |
getPartitionKey() |
long |
getSizeInKB()
Gets the size |
java.lang.String |
toString()
Serialize the Partition |
Methods inherited from JsonSerializable
Methods inherited from java.lang.Object
Constructor Details
PartitionKeyStatistics
public PartitionKeyStatistics(String jsonString)
Initialize a PartitionKeyStatistics object using the input JSON string.
Parameters:
PartitionKeyStatistics
public PartitionKeyStatistics(JSONObject jsonObject)
Constructor.
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.
Overrides:
PartitionKeyStatistics.toString()Returns:
Applies to
Azure SDK for Java