Package io.milvus.param.collection
Class ShowCollectionsParam.Builder
java.lang.Object
io.milvus.param.collection.ShowCollectionsParam.Builder
- Enclosing class:
ShowCollectionsParam
Builder for
ShowCollectionsParam class.-
Method Summary
Modifier and TypeMethodDescriptionaddCollectionName(@NonNull String collectionName) Adds a collection name.build()Verifies parameters and creates a newShowCollectionsParaminstance.withCollectionNames(@NonNull List<String> collectionNames) Sets a list of collection names.withDatabaseName(String databaseName) withShowType(ShowType showType) Sets a show type.
-
Method Details
-
withDatabaseName
-
withCollectionNames
public ShowCollectionsParam.Builder withCollectionNames(@NonNull @NonNull List<String> collectionNames) Sets a list of collection names. Collection name cannot be empty or null.- Parameters:
collectionNames- list of collection names- Returns:
Builder
-
withShowType
Sets a show type. Show Type can be empty or null, default value is ShowType.All.- Parameters:
showType- ShowType- Returns:
Builder
-
addCollectionName
Adds a collection name. Collection name cannot be empty or null.- Parameters:
collectionName- collection name- Returns:
Builder
-
build
Verifies parameters and creates a newShowCollectionsParaminstance.- Returns:
ShowCollectionsParam- Throws:
ParamException
-