Package io.milvus.param.collection
Class GetLoadStateParam.Builder
java.lang.Object
io.milvus.param.collection.GetLoadStateParam.Builder
- Enclosing class:
GetLoadStateParam
Builder for
GetLoadStateParam class.-
Method Summary
Modifier and TypeMethodDescriptionaddPartitionName(@NonNull String partitionName) Adds a partition by name.build()Verifies parameters and creates a newGetLoadStateParaminstance.withCollectionName(@NonNull String collectionName) Sets the collection name.withDatabaseName(String databaseName) Sets the database name.withPartitionNames(@NonNull List<String> partitionNames) Sets partition names list(Optional).
-
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
Sets partition names list(Optional).- 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 newGetLoadStateParaminstance.- Returns:
GetLoadStateParam- Throws:
ParamException
-