milvus-logo

Partition()

This is the constructor method to create a partition in the specified collection.

Invocation

Partition(collection, name, description='', **kwargs)

Parameters

ParameterDescriptionTypeRequired
collectionName of the collection.StringTrue
nameName of the partition to create.StringTrue
descriptionDescription of the collection.StringFalse

Return

A new partition object created with the specified name.

Properties

PropertyDescriptionType
nameName of the partition.String
descriptionDescription of the collection.String
is_emptyBoolean value to indicate if the partition is empty.Bool
num_entitiesNumber of entities in the partition.Integer

Example

from pymilvus import Partition
partition = Partition("book", "novel", "")