Class CheckpointRepairResult

java.lang.Object
io.deephaven.configuration.CheckpointRepairResult

@ScriptApi public final class CheckpointRepairResult extends Object
Immutable results of a checkpoint repair operation. Contains one entry for every table location that had a problem, along with counts describing the scope of the run.

This result is intended to be portable across legacy and Core+ workers. It uses standard Java values and containers (for example strings, enums, lists, and nested result records) rather than Deephaven-specific types.

  • Method Details

    • getSummaryStatus

      @ScriptApi @NotNull public @NotNull CheckpointRepairResult.Status getSummaryStatus()
      Summary outcome for the whole operation: the worst per-location status by ordinal, or CheckpointRepairResult.Status.OK when no problems were found.
      Returns:
      the summary status
    • getLocationResults

      @ScriptApi @NotNull public @NotNull List<CheckpointRepairResult.LocationResult> getLocationResults()
      Get the results for every location that had a problem. Locations without problems are not reported.
      Returns:
      an unmodifiable list of location results, in the order they were encountered
    • getTablesInspected

      @ScriptApi public int getTablesInspected()
      Get the number of tables that were selected and inspected.
      Returns:
      the number of tables inspected
    • getLocationsInspected

      @ScriptApi public int getLocationsInspected()
      Get the number of table locations that were inspected, including those without problems.
      Returns:
      the number of locations inspected
    • isMetadataIndexAffected

      @ScriptApi public boolean isMetadataIndexAffected()
      Whether any reported location belongs to a historical (System permanent) table, whose locations may be tracked by a metadata index. When true, the metadata index for the affected tables should be rebuilt with dhctl metadata update after the locations are repaired.
      Returns:
      true if any reported location belongs to a System historical table
    • isForced

      @ScriptApi public boolean isForced()
      Whether the operation was allowed to make changes. When false, problems were reported but nothing was modified.
      Returns:
      true if repairs were performed
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      @NotNull public static @NotNull CheckpointRepairResult.Builder builder(boolean force)
      Create a new builder.
      Parameters:
      force - whether the operation is allowed to make changes
      Returns:
      a new Builder