public class PulsarTableSource extends Object implements org.apache.flink.table.connector.source.ScanTableSource, org.apache.flink.table.connector.source.abilities.SupportsReadingMetadata
ScanTableSource implementation for Pulsar SQL Connector. It uses a SourceProvider so it doesn't need to support SupportsWatermarkPushDown interface.
| Constructor and Description |
|---|
PulsarTableSource(PulsarTableDeserializationSchemaFactory deserializationSchemaFactory,
org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> decodingFormatForReadingMetadata,
List<String> topics,
Properties properties,
StartCursor startCursor,
org.apache.pulsar.client.api.SubscriptionType subscriptionType) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyReadableMetadata(List<String> allMetadataKeys,
org.apache.flink.table.types.DataType producedDataType) |
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()
According to convention, the order of the final row must be PHYSICAL + FORMAT METADATA +
CONNECTOR METADATA where the format metadata has the highest precedence.
|
public PulsarTableSource(PulsarTableDeserializationSchemaFactory deserializationSchemaFactory, org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> decodingFormatForReadingMetadata, List<String> topics, Properties properties, StartCursor startCursor, org.apache.pulsar.client.api.SubscriptionType subscriptionType)
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 Map<String,org.apache.flink.table.types.DataType> listReadableMetadata()
listReadableMetadata in interface org.apache.flink.table.connector.source.abilities.SupportsReadingMetadatapublic void applyReadableMetadata(List<String> allMetadataKeys, org.apache.flink.table.types.DataType producedDataType)
applyReadableMetadata in interface org.apache.flink.table.connector.source.abilities.SupportsReadingMetadatapublic String asSummaryString()
asSummaryString in interface org.apache.flink.table.connector.source.DynamicTableSourcepublic org.apache.flink.table.connector.source.DynamicTableSource copy()
copy in interface org.apache.flink.table.connector.source.DynamicTableSourceCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.