Package io.deephaven.configuration
Class CheckpointRepairResult.Builder
java.lang.Object
io.deephaven.configuration.CheckpointRepairResult.Builder
- Enclosing class:
- CheckpointRepairResult
Mutable builder for
CheckpointRepairResult, accumulating location results and counts as the repair walks
the selected tables.
Call build() to produce an immutable CheckpointRepairResult.
-
Method Summary
Modifier and TypeMethodDescription@NotNull CheckpointRepairResult.BuilderaddLocationResult(@NotNull CheckpointRepairResult.LocationResult locationResult, boolean indexedTable) Record a problem found at a single location.@NotNull CheckpointRepairResult.BuilderaddLocationsInspected(int count) Record that some number of locations were inspected.@NotNull CheckpointRepairResult.BuilderRecord that a table was inspected.@NotNull CheckpointRepairResultbuild()Build an immutableCheckpointRepairResultfrom the current state of this builder.
-
Method Details
-
addTableInspected
Record that a table was inspected.- Returns:
- this builder
-
addLocationsInspected
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 recordindexedTable- whether the location belongs to a table whose locations are tracked by a metadata index- Returns:
- this builder
-
build
Build an immutableCheckpointRepairResultfrom the current state of this builder.- Returns:
- a new immutable CheckpointRepairResult
-