public class RowLevelUpdateSpec extends Object implements SinkAbilitySpec
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
.Modifier and Type | Field and Description |
---|---|
static String |
FIELD_NAME_REQUIRED_PHYSICAL_COLUMN_INDICES |
static String |
FIELD_NAME_ROW_LEVEL_UPDATE_MODE |
static String |
FIELD_NAME_UPDATED_COLUMNS |
Constructor and Description |
---|
RowLevelUpdateSpec(List<Column> updatedColumns,
SupportsRowLevelUpdate.RowLevelUpdateMode rowLevelUpdateMode,
RowLevelModificationScanContext scanContext,
int[] requiredPhysicalColumnIndices) |
Modifier and Type | Method and Description |
---|---|
void |
apply(DynamicTableSink tableSink)
Apply the ability to the given
DynamicTableSink . |
boolean |
equals(Object o) |
int[] |
getRequiredPhysicalColumnIndices() |
SupportsRowLevelUpdate.RowLevelUpdateMode |
getRowLevelUpdateMode() |
int |
hashCode() |
public static final String FIELD_NAME_UPDATED_COLUMNS
public static final String FIELD_NAME_ROW_LEVEL_UPDATE_MODE
public static final String FIELD_NAME_REQUIRED_PHYSICAL_COLUMN_INDICES
public RowLevelUpdateSpec(@Nonnull List<Column> updatedColumns, @Nonnull SupportsRowLevelUpdate.RowLevelUpdateMode rowLevelUpdateMode, @Nullable RowLevelModificationScanContext scanContext, @Nonnull int[] requiredPhysicalColumnIndices)
public void apply(DynamicTableSink tableSink)
SinkAbilitySpec
DynamicTableSink
.apply
in interface SinkAbilitySpec
@Nonnull public SupportsRowLevelUpdate.RowLevelUpdateMode getRowLevelUpdateMode()
public int[] getRequiredPhysicalColumnIndices()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.