milvus-logo

Class InsertParam.Builder

  • java.lang.Object
    • io.milvus.param.dml.InsertParam.Builder
  • Enclosing class:
    InsertParam

    public static class InsertParam.Builder
    extends java.lang.Object
    Builder for InsertParam class.
    • Method Detail

      • withCollectionName

        public InsertParam.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 InsertParam.Builder withPartitionName​(@NonNull
                                                     @NonNull java.lang.String partitionName)
        Set partition name (Optional).
        Parameters:
        partitionName - partition name
        Returns:
        Builder
      • withFields

        public InsertParam.Builder withFields​(@NonNull
                                              @NonNull java.util.List<InsertParam.Field> fields)
        Sets the data to insert. The field list cannot be empty.
        Parameters:
        fields - insert data
        Returns:
        Builder
        See Also:
        InsertParam.Field