Interface BulkOperation.Replace

All Superinterfaces:
BulkOperation
Enclosing interface:
BulkOperation

public static interface BulkOperation.Replace extends BulkOperation
Replace operation: replace the document matching the query() with the replacement() document.
Since:
5.1
Author:
Christoph Strobl
  • Method Details

    • query

      Query query()
      Returns the query that selects the document to replace.
      Returns:
      the query.
    • replacement

      Object replacement()
      Returns the replacement document.
      Returns:
      the replacement.
    • upsert

      boolean upsert()
      Returns whether to perform an upsert if no document matches.
      Returns:
      true for upsert.