Class SinkDefinition.SinkDefinitionBuilder
java.lang.Object
org.gridgain.internal.cdc.api.sink.SinkDefinition.SinkDefinitionBuilder
- Enclosing class:
- SinkDefinition
A builder for
SinkDefinition.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theSinkDefinitioninstance.createTableIfNotExists(boolean createTableIfNotExists) Sets whether to create the table if it does not exist.Sets the name of the sink.parameters(@Nullable SinkParameters parameters) Sets the parameters of the sink.parameters(Map<String, String> parameters) Sets the parameters of the sink.Sets the type of the sink.
-
Constructor Details
-
SinkDefinitionBuilder
public SinkDefinitionBuilder()
-
-
Method Details
-
type
Sets the type of the sink. -
name
Sets the name of the sink. -
createTableIfNotExists
Sets whether to create the table if it does not exist.- Parameters:
createTableIfNotExists-trueif the table should be created if it does not exist,falseotherwise.- Returns:
- This builder instance.
-
parameters
Sets the parameters of the sink. Ifnullis passed, an emptySinkParameterswill be created.- Parameters:
parameters- The parameters to set.- Returns:
- This builder instance.
-
parameters
public SinkDefinition.SinkDefinitionBuilder parameters(@Nullable @Nullable SinkParameters parameters) Sets the parameters of the sink. Ifnullis passed, an emptySinkParameterswill be created. -
build
Builds theSinkDefinitioninstance.- Returns:
- The built
SinkDefinition.
-