public class PulsarDynamicTableSource extends Object implements org.apache.flink.table.connector.source.ScanTableSource, org.apache.flink.table.connector.source.abilities.SupportsReadingMetadata, org.apache.flink.table.connector.source.abilities.SupportsWatermarkPushDown
| Modifier and Type | Field and Description |
|---|---|
protected String |
adminUrl
The Pulsar topic to consume.
|
protected org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> |
keyDecodingFormat
Optional format for decoding keys from Pulsar.
|
protected String |
keyPrefix
Prefix that needs to be removed from fields when constructing the physical data type.
|
protected int[] |
keyProjection
Indices that determine the key fields and the target position in the produced row.
|
protected List<String> |
metadataKeys
Metadata that is appended at the end of a physical source row.
|
protected org.apache.flink.table.types.DataType |
physicalDataType
Data type to configure the formats.
|
protected org.apache.flink.table.types.DataType |
producedDataType
Data type that describes the final output of the source.
|
protected Properties |
properties
Properties for the Pulsar consumer.
|
protected String |
serviceUrl
The Pulsar topic to consume.
|
protected PulsarTableOptions.StartupOptions |
startupOptions
The startup mode for the contained consumer (default is
StartupMode.LATEST). |
protected String |
topicPattern
The Pulsar topic to consume.
|
protected List<String> |
topics
The Pulsar topic to consume.
|
protected boolean |
upsertMode
Flag to determine source mode.
|
protected org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> |
valueDecodingFormat
Format for decoding values from Pulsar.
|
protected int[] |
valueProjection
Indices that determine the value fields and the target position in the produced row.
|
protected org.apache.flink.api.common.eventtime.WatermarkStrategy<org.apache.flink.table.data.RowData> |
watermarkStrategy
Watermark strategy that is used to generate per-partition watermark.
|
| Constructor and Description |
|---|
PulsarDynamicTableSource(org.apache.flink.table.types.DataType physicalDataType,
org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> keyDecodingFormat,
org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> valueDecodingFormat,
int[] keyProjection,
int[] valueProjection,
String keyPrefix,
List<String> topics,
String topicPattern,
String serviceUrl,
String adminUrl,
Properties properties,
PulsarTableOptions.StartupOptions startupOptions,
boolean upsertMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyReadableMetadata(List<String> metadataKeys,
org.apache.flink.table.types.DataType producedDataType) |
void |
applyWatermark(org.apache.flink.api.common.eventtime.WatermarkStrategy<org.apache.flink.table.data.RowData> watermarkStrategy) |
String |
asSummaryString() |
org.apache.flink.table.connector.source.DynamicTableSource |
copy() |
boolean |
equals(Object o) |
org.apache.flink.table.connector.ChangelogMode |
getChangelogMode() |
org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider |
getScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext context) |
int |
hashCode() |
Map<String,org.apache.flink.table.types.DataType> |
listReadableMetadata() |
protected org.apache.flink.table.types.DataType producedDataType
protected List<String> metadataKeys
@Nullable protected org.apache.flink.api.common.eventtime.WatermarkStrategy<org.apache.flink.table.data.RowData> watermarkStrategy
protected final org.apache.flink.table.types.DataType physicalDataType
@Nullable protected final org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> keyDecodingFormat
protected final org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> valueDecodingFormat
protected final int[] keyProjection
protected final int[] valueProjection
@Nullable protected final String keyPrefix
protected final String topicPattern
protected final String serviceUrl
protected final String adminUrl
protected final Properties properties
protected final PulsarTableOptions.StartupOptions startupOptions
StartupMode.LATEST).protected final boolean upsertMode
public PulsarDynamicTableSource(org.apache.flink.table.types.DataType physicalDataType,
@Nullable
org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> keyDecodingFormat,
org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> valueDecodingFormat,
int[] keyProjection,
int[] valueProjection,
@Nullable
String keyPrefix,
List<String> topics,
String topicPattern,
String serviceUrl,
String adminUrl,
Properties properties,
PulsarTableOptions.StartupOptions startupOptions,
boolean upsertMode)
public org.apache.flink.table.connector.ChangelogMode getChangelogMode()
getChangelogMode in interface org.apache.flink.table.connector.source.ScanTableSourcepublic org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider getScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext context)
getScanRuntimeProvider in interface org.apache.flink.table.connector.source.ScanTableSourcepublic org.apache.flink.table.connector.source.DynamicTableSource copy()
copy in interface org.apache.flink.table.connector.source.DynamicTableSourcepublic String asSummaryString()
asSummaryString in interface org.apache.flink.table.connector.source.DynamicTableSourcepublic Map<String,org.apache.flink.table.types.DataType> listReadableMetadata()
listReadableMetadata in interface org.apache.flink.table.connector.source.abilities.SupportsReadingMetadatapublic void applyReadableMetadata(List<String> metadataKeys, org.apache.flink.table.types.DataType producedDataType)
applyReadableMetadata in interface org.apache.flink.table.connector.source.abilities.SupportsReadingMetadatapublic void applyWatermark(org.apache.flink.api.common.eventtime.WatermarkStrategy<org.apache.flink.table.data.RowData> watermarkStrategy)
applyWatermark in interface org.apache.flink.table.connector.source.abilities.SupportsWatermarkPushDownCopyright © 2019–2021 The Apache Software Foundation. All rights reserved.