public class SourceWatermarkSpec extends SourceAbilitySpecBase
SourceAbilitySpec
that can not only serialize/deserialize the boolean flag
whether a source watermark should be used to/from JSON, but can also apply it to SupportsSourceWatermark
.Modifier and Type | Field and Description |
---|---|
static String |
FIELD_NAME_SOURCE_WATERMARK_ENABLED |
FIELD_NAME_PRODUCED_TYPE
Constructor and Description |
---|
SourceWatermarkSpec(boolean sourceWatermarkEnabled,
RowType producedType) |
Modifier and Type | Method and Description |
---|---|
void |
apply(DynamicTableSource tableSource,
SourceAbilityContext context)
Apply the ability to the given
DynamicTableSource . |
getProducedType
public static final String FIELD_NAME_SOURCE_WATERMARK_ENABLED
public SourceWatermarkSpec(boolean sourceWatermarkEnabled, RowType producedType)
public void apply(DynamicTableSource tableSource, SourceAbilityContext context)
SourceAbilitySpec
DynamicTableSource
.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.