Package io.milvus.param.partition
Class ReleasePartitionsParam.Builder
java.lang.Object
io.milvus.param.partition.ReleasePartitionsParam.Builder
- Enclosing class:
ReleasePartitionsParam
Builder for
ReleasePartitionsParam class.-
Method Summary
Modifier and TypeMethodDescriptionaddPartitionName(@NonNull String partitionName) Adds a partition by name.build()Verifies parameters and creates a newReleasePartitionsParaminstance.withCollectionName(@NonNull String collectionName) Sets the collection name.withDatabaseName(String databaseName) Sets the database name.withPartitionNames(@NonNull List<String> partitionNames) Sets the partition names list.
-
Method Details
-
withDatabaseName
Sets the database name. database name can be nil.- Parameters:
databaseName- database name- Returns:
Builder
-
withCollectionName
Sets the collection name. Collection name cannot be empty or null.- Parameters:
collectionName- collection name- Returns:
Builder
-
withPartitionNames
public ReleasePartitionsParam.Builder withPartitionNames(@NonNull @NonNull List<String> partitionNames) Sets the partition names list. Partition names list cannot be null or empty.- Parameters:
partitionNames- partition names list- Returns:
Builder
-
addPartitionName
Adds a partition by name. Partition name cannot be empty or null.- Parameters:
partitionName- partition name- Returns:
Builder
-
build
Verifies parameters and creates a newReleasePartitionsParaminstance.- Returns:
ReleasePartitionsParam- Throws:
ParamException
-