public class RowLevelDeleteSpec extends Object implements SinkAbilitySpec
SinkAbilitySpec
that can not only serialize/deserialize the row-level
delete mode & required physical column indices to/from JSON, but also can delete existing data
for SupportsRowLevelDelete
.Modifier and Type | Field and Description |
---|---|
static String |
FIELD_NAME_REQUIRED_PHYSICAL_COLUMN_INDICES |
static String |
FIELD_NAME_ROW_LEVEL_DELETE_MODE |
Constructor and Description |
---|
RowLevelDeleteSpec(SupportsRowLevelDelete.RowLevelDeleteMode rowLevelDeleteMode,
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() |
SupportsRowLevelDelete.RowLevelDeleteMode |
getRowLevelDeleteMode() |
int |
hashCode() |
public static final String FIELD_NAME_ROW_LEVEL_DELETE_MODE
public static final String FIELD_NAME_REQUIRED_PHYSICAL_COLUMN_INDICES
public RowLevelDeleteSpec(@Nonnull SupportsRowLevelDelete.RowLevelDeleteMode rowLevelDeleteMode, @Nullable RowLevelModificationScanContext scanContext, @Nonnull int[] requiredPhysicalColumnIndices)
public void apply(DynamicTableSink tableSink)
SinkAbilitySpec
DynamicTableSink
.apply
in interface SinkAbilitySpec
@Nonnull public SupportsRowLevelDelete.RowLevelDeleteMode getRowLevelDeleteMode()
public int[] getRequiredPhysicalColumnIndices()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.