Class CheckpointRepairResult.Builder

java.lang.Object
io.deephaven.configuration.CheckpointRepairResult.Builder
Enclosing class:
CheckpointRepairResult

public static final class CheckpointRepairResult.Builder extends Object
Mutable builder for CheckpointRepairResult, accumulating location results and counts as the repair walks the selected tables.

Call build() to produce an immutable CheckpointRepairResult.

  • Method Details

    • addTableInspected

      @NotNull public @NotNull CheckpointRepairResult.Builder addTableInspected()
      Record that a table was inspected.
      Returns:
      this builder
    • addLocationsInspected

      @NotNull public @NotNull CheckpointRepairResult.Builder addLocationsInspected(int count)
      Record that some number of locations were inspected.
      Parameters:
      count - the number of locations inspected
      Returns:
      this builder
    • addLocationResult

      @NotNull public @NotNull CheckpointRepairResult.Builder addLocationResult(@NotNull @NotNull CheckpointRepairResult.LocationResult locationResult, boolean indexedTable)
      Record a problem found at a single location.
      Parameters:
      locationResult - the location result to record
      indexedTable - whether the location belongs to a table whose locations are tracked by a metadata index
      Returns:
      this builder
    • build

      @NotNull public @NotNull CheckpointRepairResult build()
      Build an immutable CheckpointRepairResult from the current state of this builder.
      Returns:
      a new immutable CheckpointRepairResult