Class BulkInsertParam.Builder

    • Method Detail

      • withCollectionName

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

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

        public BulkInsertParam.Builder withFiles​(@NonNull
                                                 @NonNull java.util.List<java.lang.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 java.lang.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​(java.lang.String key,
                                                  java.lang.String value)
        Sets the options of the request
        Parameters:
        key - a List of String
        value - a List of String
        Returns:
        Builder