Interface AbstractBulkMigrator.MigrationProgress

Enclosing class:
AbstractBulkMigrator

public static interface AbstractBulkMigrator.MigrationProgress
Reports per-batch progress information from a compute call back to the underlying bulk computation, so the migration's bulk status reflects skipped documents and per-document errors.
Since:
2025.20
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    inError(long count, String message)
    Reports count documents that errored in the current batch with the given message.
    void
    inError(long count, String message, int code)
    Reports count documents that errored, with a custom HTTP-style status code.
    void
    skipped(long count)
    Reports count documents skipped by the migrator in the current batch.
  • Method Details

    • skipped

      void skipped(long count)
      Reports count documents skipped by the migrator in the current batch.
    • inError

      default void inError(long count, String message)
      Reports count documents that errored in the current batch with the given message.

      This will cause the bulk command to be aborted and the migration step to fail.

    • inError

      void inError(long count, String message, int code)
      Reports count documents that errored, with a custom HTTP-style status code.

      This will cause the bulk command to be aborted and the migration step to fail.