Package io.deephaven.configuration
Class DisCommandResult
java.lang.Object
io.deephaven.configuration.DisCommandResult
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMutable builder forDisCommandResult.static final classImmutable result for a single Data Import Server (overall status, optional key, and location results).static final recordResult of a truncate or delete operation on a single location.static enumStatus of a truncate or delete operation on a single location.static enumOutcome of a DIS command, used both as the overall summary across all DIS results and as the per-DIS status within an individualDisCommandResult.DisResult. -
Method Summary
Modifier and TypeMethodDescriptionstatic DisCommandResult.Builderbuilder()Create a new builder.@NotNull Map<String,DisCommandResult.DisResult> Get the detailed results for all DISes.@NotNull DisCommandResult.StatusOverall result for all DIS results.toString()
-
Method Details
-
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
Get the detailed results for all DISes.- Returns:
- an unmodifiable map of all DIS names and the detailed results of each
-
toString
-
builder
Create a new builder.- Returns:
- a new Builder
-