WeaviateEx.Batch.Concurrent.Result (WeaviateEx v0.7.4)

View Source

Result of a concurrent batch operation.

Summary

Functions

Checks if all objects were inserted successfully.

Checks if there were any failures.

Returns a summary of the batch operation.

Types

t()

@type t() :: %WeaviateEx.Batch.Concurrent.Result{
  batch_errors: non_neg_integer(),
  execution_time_ms: non_neg_integer(),
  failed: [map()],
  failed_count: non_neg_integer(),
  successful: [map()],
  successful_count: non_neg_integer(),
  total_batches: non_neg_integer()
}

Functions

all_successful?(result)

@spec all_successful?(t()) :: boolean()

Checks if all objects were inserted successfully.

has_failures?(result)

@spec has_failures?(t()) :: boolean()

Checks if there were any failures.

summary(result)

@spec summary(t()) :: String.t()

Returns a summary of the batch operation.