🚀 Try Zilliz Cloud, the fully managed Milvus, for free—experience 10x faster performance! Try Now>>

Milvus
Zilliz
< Docs
  • Java

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);

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?