Class SourceDefinition.SourceDefinitionBuilder
java.lang.Object
org.gridgain.internal.cdc.api.source.SourceDefinition.SourceDefinitionBuilder
- Enclosing class:
- SourceDefinition
A builder for
SourceDefinition.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theSourceDefinitioninstance.Sets the name of the source.parameters(@Nullable SourceParameters parameters) Sets the parameters of the source.Sets the tables of the source by their names.tables(SourceTableDefinition @Nullable [] tables) Sets the tables of the source.type(SourceType type) Sets the type of the source.
-
Constructor Details
-
SourceDefinitionBuilder
public SourceDefinitionBuilder()
-
-
Method Details
-
type
Sets the type of the source. -
name
Sets the name of the source. -
parameters
public SourceDefinition.SourceDefinitionBuilder parameters(@Nullable @Nullable SourceParameters parameters) Sets the parameters of the source. Ifnullis passed, an emptySourceParameterswill be created. -
tables
Sets the tables of the source. Ifnullis passed, an empty array will be created. -
tables
Sets the tables of the source by their names. Tables must be in format "schema.table". If no schema is provided, the exception will be thrown.- Parameters:
tables- The names of the tables to be included in the source.- Returns:
- This builder instance.
-
build
Builds theSourceDefinitioninstance.- Returns:
- The built
SourceDefinition.
-