milvus-logo
Star
0
Forks
0
快速开始

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 collectionStringTrue
nameName of the partition to createStringTrue
descriptionDescription of the collectionStringFalse

Return

A new partition object created with the specified name.

Properties

PropertyDescriptionType
nameName of the partitionString
descriptionDescription of the collectionString
is_emptyBoolean value to indicate if the partition is emptyBool
num_entitiesNumber of entities in the partitionInteger

Example

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