Package io.milvus.param.partition
Class HasPartitionParam.Builder
java.lang.Object
io.milvus.param.partition.HasPartitionParam.Builder
- Enclosing class:
HasPartitionParam
Builder for
HasPartitionParam class.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Verifies parameters and creates a newHasPartitionParaminstance.withCollectionName(@NonNull String collectionName) Sets the collection name.withDatabaseName(String databaseName) Sets the database name.withPartitionName(@NonNull String partitionName) Sets the partition name.
-
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
-
withPartitionName
Sets the partition name. Partition name cannot be empty or null.- Parameters:
partitionName- partition name- Returns:
Builder
-
build
Verifies parameters and creates a newHasPartitionParaminstance.- Returns:
HasPartitionParam- Throws:
ParamException
-