Package io.deephaven.configuration
Class CheckpointControl.RepairOptions.Builder
java.lang.Object
io.deephaven.configuration.CheckpointControl.RepairOptions.Builder
- Enclosing class:
- CheckpointControl.RepairOptions
Builder for
CheckpointControl.RepairOptions. The Immutables-generated ImmutableRepairOptions.Builder extends this class
and supplies concrete implementations of the abstract setters; the convenience overloads here delegate to
them so callers don't have to materialize a CheckpointControl.TableKey or NamespaceSet themselves.
The underlying builder is strict: each non-collection setter may be called at most once per builder instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract @NotNull CheckpointControl.RepairOptions.BuilderaddAllNamespaces(@NotNull Iterable<String> namespaces) Select every table in each of the given namespaces.abstract @NotNull CheckpointControl.RepairOptions.BuilderaddAllNamespaceSets(@NotNull Iterable<? extends NamespaceSet> namespaceSets) Select every table in every namespace of each of the given namespace sets.abstract @NotNull CheckpointControl.RepairOptions.BuilderaddAllTables(@NotNull Iterable<? extends CheckpointControl.TableKey> tables) Select all of the given tables.abstract @NotNull CheckpointControl.RepairOptions.BuilderaddNamespace(@NotNull String namespace) Select every table in a namespace.abstract @NotNull CheckpointControl.RepairOptions.BuilderaddNamespaceSet(@NotNull NamespaceSet namespaceSet) Select every table in every namespace of a namespace set.final @NotNull CheckpointControl.RepairOptions.BuilderaddNamespaceSet(@NotNull String namespaceSet) Select every table in every namespace of a namespace set, named case-insensitively.abstract @NotNull CheckpointControl.RepairOptions.BuilderaddTable(@NotNull CheckpointControl.TableKey table) Select a single table.final @NotNull CheckpointControl.RepairOptions.BuilderSelect a single table by namespace and name.abstract @NotNull CheckpointControl.RepairOptionsbuild()Build an immutableCheckpointControl.RepairOptionsfrom the current builder state.abstract @NotNull CheckpointControl.RepairOptions.Builderforce(boolean force) Set whether repairs should actually be performed.abstract @NotNull CheckpointControl.RepairOptions.Builderlogger(@NotNull com.fishlib.io.logger.Logger logger) Set the logger used for user-facing messages.abstract @NotNull CheckpointControl.RepairOptions.BuilderschemaService(@NotNull SchemaService schemaService) Set the schema service used to resolve the selections and read table definitions.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addTable
@NotNull public abstract @NotNull CheckpointControl.RepairOptions.Builder addTable(@NotNull @NotNull CheckpointControl.TableKey table) Select a single table.- Parameters:
table- the table to select- Returns:
- this builder
-
addAllTables
@NotNull public abstract @NotNull CheckpointControl.RepairOptions.Builder addAllTables(@NotNull @NotNull Iterable<? extends CheckpointControl.TableKey> tables) Select all of the given tables.- Parameters:
tables- the tables to select- Returns:
- this builder
-
addTable
@NotNull public final @NotNull CheckpointControl.RepairOptions.Builder addTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Select a single table by namespace and name.- Parameters:
namespace- the namespace of the tabletableName- the name of the table- Returns:
- this builder
-
addNamespace
@NotNull public abstract @NotNull CheckpointControl.RepairOptions.Builder addNamespace(@NotNull @NotNull String namespace) Select every table in a namespace.- Parameters:
namespace- the namespace to select- Returns:
- this builder
-
addAllNamespaces
@NotNull public abstract @NotNull CheckpointControl.RepairOptions.Builder addAllNamespaces(@NotNull @NotNull Iterable<String> namespaces) Select every table in each of the given namespaces.- Parameters:
namespaces- the namespaces to select- Returns:
- this builder
-
addNamespaceSet
@NotNull public abstract @NotNull CheckpointControl.RepairOptions.Builder addNamespaceSet(@NotNull @NotNull NamespaceSet namespaceSet) Select every table in every namespace of a namespace set.- Parameters:
namespaceSet- the namespace set to select- Returns:
- this builder
-
addAllNamespaceSets
@NotNull public abstract @NotNull CheckpointControl.RepairOptions.Builder addAllNamespaceSets(@NotNull @NotNull Iterable<? extends NamespaceSet> namespaceSets) Select every table in every namespace of each of the given namespace sets.- Parameters:
namespaceSets- the namespace sets to select- Returns:
- this builder
-
addNamespaceSet
@NotNull public final @NotNull CheckpointControl.RepairOptions.Builder addNamespaceSet(@NotNull @NotNull String namespaceSet) Select every table in every namespace of a namespace set, named case-insensitively.- Parameters:
namespaceSet- the namespace set name, for exampleSystemoruser- Returns:
- this builder
- Throws:
IllegalArgumentException- if the name does not match a namespace set
-
force
Set whether repairs should actually be performed.- Parameters:
force-trueto perform repairs,falseto only report problems- Returns:
- this builder
-
logger
@NotNull public abstract @NotNull CheckpointControl.RepairOptions.Builder logger(@NotNull @NotNull com.fishlib.io.logger.Logger logger) Set the logger used for user-facing messages.- Parameters:
logger- the logger- Returns:
- this builder
-
schemaService
@NotNull public abstract @NotNull CheckpointControl.RepairOptions.Builder schemaService(@NotNull @NotNull SchemaService schemaService) Set the schema service used to resolve the selections and read table definitions. The caller retains ownership and must close it.- Parameters:
schemaService- the schema service- Returns:
- this builder
-
build
Build an immutableCheckpointControl.RepairOptionsfrom the current builder state.- Returns:
- a new
CheckpointControl.RepairOptions - Throws:
IllegalStateException- if nothing was selected
-