Class DisCommandResult

java.lang.Object
io.deephaven.configuration.DisCommandResult

@ScriptApi public final class DisCommandResult extends Object
Immutable results of a DIS command (truncate, delete, or rescan). Contains detailed results for all data import servers and all locations that could have been affected.

This result is intended to be portable across legacy and Core+ workers. It uses standard Java values and containers (for example strings, enums, maps, lists, and nested result records) rather than Deephaven-specific location-key types such as FullTableLocationKey. In particular, location identity is represented with string fields, although nested results may still include exceptions when reporting failures.

  • Method Details

    • getSummaryResult

      @ScriptApi @NotNull public @NotNull DisCommandResult.Status getSummaryResult()
      Overall result for all DIS results. Returns the max status by ordinal, assuming the Status enum is ordered such that the max result present is an appropriate overall result. If there are no DIS results, returns the overall result.
      Returns:
      the summary status for all DIS results
    • getDisResultsMap

      @ScriptApi @NotNull public @NotNull Map<String,DisCommandResult.DisResult> getDisResultsMap()
      Get the detailed results for all DISes.
      Returns:
      an unmodifiable map of all DIS names and the detailed results of each
    • toString

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

      public static DisCommandResult.Builder builder()
      Create a new builder.
      Returns:
      a new Builder