Package io.milvus.param.bulkinsert
Class BulkInsertParam.Builder
java.lang.Object
io.milvus.param.bulkinsert.BulkInsertParam.Builder
- Enclosing class:
BulkInsertParam
Builder for
BulkInsertParam class.-
Method Summary
Modifier and TypeMethodDescriptionAdds a file path.build()Verifies parameters and creates a newBulkInsertParaminstance.withCollectionName(@NonNull String collectionName) Sets the collection name.withDatabaseName(String databaseName) Sets the database name.Sets the path of the files.withOption(String key, String value) Sets the options of the requestwithPartitionName(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 can be null.- Parameters:
partitionName- partition name- Returns:
Builder
-
withFiles
Sets the path of the files. The paths cannot be empty or null. Each file path must be a relative path under the Milvus storage root path.- Parameters:
files- aListofString- Returns:
Builder
-
addFile
Adds a file path. The path cannot be empty or null. The file path must be a relative path under the Milvus storage root path.- Parameters:
file- aString- Returns:
Builder
-
withOption
Sets the options of the request -
build
Verifies parameters and creates a newBulkInsertParaminstance.- Returns:
BulkInsertParam- Throws:
ParamException
-