CollectionInfo

Describes one collection in the response of listCollections().

class io.milvus.v2.service.collection.CollectionInfo

METHODS:

  • getCollectionName() (String) -

    The name of the collection.

  • getShardNum() (Integer) -

    The number of shards of the collection.

Example

ListCollectionsResp resp = client.listCollections(ListCollectionsReq.builder().build());
resp.getCollectionInfos().forEach(info ->
    System.out.println(info.getCollectionName() + ", shards: " + info.getShardNum()));

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?