Package io.milvus.param.partition
Class ReleasePartitionsParam.Builder
- java.lang.Object
-
- io.milvus.param.partition.ReleasePartitionsParam.Builder
-
- Enclosing class:
- ReleasePartitionsParam
public static final class ReleasePartitionsParam.Builder extends Object
Builder forReleasePartitionsParamclass.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReleasePartitionsParam.BuilderaddPartitionName(@NonNull String partitionName)Adds a partition by name.ReleasePartitionsParambuild()Verifies parameters and creates a newReleasePartitionsParaminstance.ReleasePartitionsParam.BuilderwithCollectionName(@NonNull String collectionName)Sets the collection name.ReleasePartitionsParam.BuilderwithDatabaseName(String databaseName)Sets the database name.ReleasePartitionsParam.BuilderwithPartitionNames(@NonNull List<String> partitionNames)Sets the partition names list.
-
-
-
Method Detail
-
withDatabaseName
public ReleasePartitionsParam.Builder withDatabaseName(String databaseName)
Sets the database name. database name can be nil.- Parameters:
databaseName- database name- Returns:
Builder
-
withCollectionName
public ReleasePartitionsParam.Builder withCollectionName(@NonNull @NonNull String collectionName)
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
public ReleasePartitionsParam.Builder addPartitionName(@NonNull @NonNull String partitionName)
Adds a partition by name. Partition name cannot be empty or null.- Parameters:
partitionName- partition name- Returns:
Builder
-
build
public ReleasePartitionsParam build() throws ParamException
Verifies parameters and creates a newReleasePartitionsParaminstance.- Returns:
ReleasePartitionsParam- Throws:
ParamException
-
-