Interface DiscoveryConfig.Builder
- Enclosing interface:
- DiscoveryConfig
public static interface DiscoveryConfig.Builder
The interface for constructing a
DiscoveryConfig
.-
Method Summary
Modifier and TypeMethodDescription@NotNull DiscoveryConfig
build()
Construct a newDiscoveryConfig
from the state in thisDiscoveryConfig.Builder
.@NotNull DiscoveryConfig.Builder
endpoint
(@NotNull IcebergEndpoint endpoint) Set theIcebergEndpoint
.@NotNull DiscoveryConfig.Builder
An optional user specified namespace.@NotNull DiscoveryConfig.Builder
referenceDefinition
(@NotNull TableDefinition reference) An optional user specified referenceTableDefinition
.@NotNull DiscoveryConfig.Builder
snapshotId
(@org.jetbrains.annotations.NotNull long snapshotId) Set the snapshot id to use for fetching the Iceberg table.@NotNull DiscoveryConfig.Builder
tableIdentifier
(@NotNull String tableIdentifier) Set the Iceberg table identifier for discovery.@NotNull DiscoveryConfig.Builder
An optional user specified table name.
-
Method Details
-
tableIdentifier
Set the Iceberg table identifier for discovery.- Parameters:
tableIdentifier
- the table identifier.- Returns:
- this
DiscoveryConfig.Builder
-
snapshotId
@NotNull @NotNull DiscoveryConfig.Builder snapshotId(@NotNull @org.jetbrains.annotations.NotNull long snapshotId) Set the snapshot id to use for fetching the Iceberg table.- Parameters:
snapshotId
- the snapshot id.- Returns:
- this
DiscoveryConfig.Builder
-
endpoint
Set theIcebergEndpoint
. Users may supply aIcebergEndpoint.Named
if the schema is going to be deployed with anendpoint reference
.- Parameters:
endpoint
- the endpoint for discovery- Returns:
- this
DiscoveryConfig.Builder
-
namespace
An optional user specified namespace. If not set, the namespace is derived from theDiscoveryConfig.tableIdentifier()
.- Parameters:
namespace
- the namespace.- Returns:
- this
DiscoveryConfig.Builder
-
tableName
An optional user specified table name. If not set, the table name is derived from theDiscoveryConfig.tableIdentifier()
.- Parameters:
tableName
- the table name.- Returns:
- this
DiscoveryConfig.Builder
-
referenceDefinition
@NotNull @NotNull DiscoveryConfig.Builder referenceDefinition(@NotNull @NotNull TableDefinition reference) An optional user specified referenceTableDefinition
. Thediscovery
process will guarantee that the result is compatible with this definition.- Parameters:
reference
- the reference definition.- Returns:
- this
DiscoveryConfig.Builder
-
build
Construct a newDiscoveryConfig
from the state in thisDiscoveryConfig.Builder
.- Returns:
- a new
DiscoveryConfig
-