getPartitionStats()
This operation lists the statistics collected on a specific partition.
public GetPartitionStatsResp getPartitionStats(GetPartitionStatsReq request)
Request Syntax
getPartitionStats(GetPartitionStatsReq.builder()
.collectionName(String collectionName)
.partitionName(String partitionName)
.build()
)
BUILDER METHODS:
collectionName(String collectionName)
The name of a collection.
partitionName(String partitionName)
The name of a partition in the specified collection.
RETURN TYPE:
GetPartitionStatsResp
RETURNS:
A GetPartitionStatsResp object containing collected statistics on the specified collection.
PARAMETERS:
numOfEntities (long)
The count of entities in the partition.
EXCEPTIONS:
MilvusClientExceptions
This exception will be raised when any error occurs during this operation.
Example
GetPartitionStatsReq getPartitionStatsReq = GetPartitionStatsReq.builder()
.collectionName("test")
.partitionName("default")
.build();
GetPartitionStatsResp getPartitionStatsResp = client.getPartitionStats(getPartitionStatsReq);