Interface Bulk.BulkBuilder

Enclosing interface:
Bulk

public static interface Bulk.BulkBuilder
Builder for defining bulk operations across one or more collections.
Since:
5.1
Author:
Christoph Strobl, Mark Paluch
  • Method Details

    • inCollection

      Bulk.BulkBuilder inCollection(String collectionName, Consumer<Bulk.BulkSpec> builderCustomizer)
      Adds operations for the given collection name within a scoped consumer.
      Parameters:
      collectionName - the target collection name; must not be null or empty.
      builderCustomizer - the consumer that defines operations for that collection.
      Returns:
      this builder.
    • inCollection

      <T> Bulk.BulkBuilder inCollection(Class<T> type, Consumer<Bulk.BulkSpec> builderCustomizer)
      Adds operations for the collection mapped to the given domain type within a scoped consumer.
      Type Parameters:
      T - the domain type.
      Parameters:
      type - the domain type used to resolve the collection.
      builderCustomizer - the consumer that defines operations for that collection.
      Returns:
      this builder.
    • inCollection

      <T> Bulk.BulkBuilder inCollection(Class<T> type, String collectionName, Consumer<Bulk.BulkSpec> builderCustomizer)
      Adds operations for the collection mapped to the given domain type within a scoped consumer.
      Type Parameters:
      T - the domain type.
      Parameters:
      type - the domain type used to map domain objects.
      collectionName - the target collection name; must not be null or empty.
      builderCustomizer - the consumer that defines operations for that collection.
      Returns:
      this builder.
    • build

      Bulk build()
      Builds the Bulk with all operations added so far.
      Returns:
      the built Bulk.