Class BulkInsertParam.Builder

java.lang.Object
io.milvus.param.bulkinsert.BulkInsertParam.Builder
Enclosing class:
BulkInsertParam

public static final class BulkInsertParam.Builder extends Object
Builder for BulkInsertParam class.
  • Method Details

    • withDatabaseName

      public BulkInsertParam.Builder withDatabaseName(String databaseName)
      Sets the database name. database name can be nil.
      Parameters:
      databaseName - database name
      Returns:
      Builder
    • withCollectionName

      public BulkInsertParam.Builder withCollectionName(@NonNull @NonNull String collectionName)
      Sets the collection name. Collection name cannot be empty or null.
      Parameters:
      collectionName - collection name
      Returns:
      Builder
    • withPartitionName

      public BulkInsertParam.Builder withPartitionName(String partitionName)
      Sets the partition name. partition name can be null.
      Parameters:
      partitionName - partition name
      Returns:
      Builder
    • withFiles

      public BulkInsertParam.Builder withFiles(@NonNull @NonNull List<String> files)
      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 - a List of String
      Returns:
      Builder
    • addFile

      public BulkInsertParam.Builder addFile(@NonNull @NonNull String file)
      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 - a String
      Returns:
      Builder
    • withOption

      public BulkInsertParam.Builder withOption(String key, String value)
      Sets the options of the request
      Parameters:
      key - a List of String
      value - a List of String
      Returns:
      Builder
    • build

      public BulkInsertParam build() throws ParamException
      Verifies parameters and creates a new BulkInsertParam instance.
      Returns:
      BulkInsertParam
      Throws:
      ParamException