Class RowLevelUpdateSpec
java.lang.Object
org.apache.flink.table.planner.plan.abilities.sink.RowLevelUpdateSpec
- All Implemented Interfaces:
SinkAbilitySpec
A sub-class of
SinkAbilitySpec that can not only serialize/deserialize the row-level
update mode, columns & required physical column indices to/from JSON, but also can update
existing data for SupportsRowLevelUpdate.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRowLevelUpdateSpec(List<org.apache.flink.table.catalog.Column> updatedColumns, org.apache.flink.table.connector.sink.abilities.SupportsRowLevelUpdate.RowLevelUpdateMode rowLevelUpdateMode, org.apache.flink.table.connector.RowLevelModificationScanContext scanContext, int[] requiredPhysicalColumnIndices) -
Method Summary
-
Field Details
-
FIELD_NAME_UPDATED_COLUMNS
- See Also:
-
FIELD_NAME_ROW_LEVEL_UPDATE_MODE
- See Also:
-
FIELD_NAME_REQUIRED_PHYSICAL_COLUMN_INDICES
- See Also:
-
-
Constructor Details
-
RowLevelUpdateSpec
public RowLevelUpdateSpec(@Nonnull List<org.apache.flink.table.catalog.Column> updatedColumns, @Nonnull org.apache.flink.table.connector.sink.abilities.SupportsRowLevelUpdate.RowLevelUpdateMode rowLevelUpdateMode, @Nullable org.apache.flink.table.connector.RowLevelModificationScanContext scanContext, @Nonnull int[] requiredPhysicalColumnIndices)
-
-
Method Details
-
apply
public void apply(org.apache.flink.table.connector.sink.DynamicTableSink tableSink) Description copied from interface:SinkAbilitySpecApply the ability to the givenDynamicTableSink.- Specified by:
applyin interfaceSinkAbilitySpec
-
getRowLevelUpdateMode
@Nonnull public org.apache.flink.table.connector.sink.abilities.SupportsRowLevelUpdate.RowLevelUpdateMode getRowLevelUpdateMode() -
getRequiredPhysicalColumnIndices
public int[] getRequiredPhysicalColumnIndices() -
equals
-
hashCode
public int hashCode()
-