Class SinkDefinition
java.lang.Object
org.gridgain.internal.cdc.api.sink.SinkDefinition
The definition of a CDC sink.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSinkDefinition.builderFrom(SinkDefinition icebergSinkDefinition) Creates a builder forSinkDefinitionfrom an existingSinkDefinition.booleanWhether to create the table if it does not exist.booleaninthashCode()name()The name of the sink.Sink parameters.toString()type()The type of the sink.
-
Constructor Details
-
SinkDefinition
public SinkDefinition()Constructor needed for deserialization.
-
-
Method Details
-
type
The type of the sink. -
name
The name of the sink. The name is unique. -
parameters
Sink parameters. -
createTableIfNotExists
public boolean createTableIfNotExists()Whether to create the table if it does not exist.- Returns:
trueif the table should be created if it does not exist,falseotherwise.
-
equals
-
hashCode
public int hashCode() -
toString
-
builder
Creates a builder forSinkDefinition.- Returns:
- Builder for
SinkDefinition.
-
builderFrom
public static SinkDefinition.SinkDefinitionBuilder builderFrom(SinkDefinition icebergSinkDefinition) Creates a builder forSinkDefinitionfrom an existingSinkDefinition.- Parameters:
icebergSinkDefinition- The existing sink definition to build from.- Returns:
- A new instance of
SinkDefinition.SinkDefinitionBuilder.
-