public class PulsarDynamicTableSink extends Object implements org.apache.flink.table.connector.sink.DynamicTableSink, org.apache.flink.table.connector.sink.abilities.SupportsWritingMetadata
org.apache.flink.table.connector.sink.DynamicTableSink.Context, org.apache.flink.table.connector.sink.DynamicTableSink.DataStructureConverter, org.apache.flink.table.connector.sink.DynamicTableSink.SinkRuntimeProvider| Modifier and Type | Field and Description |
|---|---|
protected String |
adminUrl |
protected org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> |
keyEncodingFormat
Optional format for encoding keys to 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 source position in the consumed row.
|
protected List<String> |
metadataKeys
Metadata that is appended at the end of a physical sink row.
|
protected Integer |
parallelism
Parallelism of the physical Pulsar producer.
|
protected org.apache.flink.table.types.DataType |
physicalDataType
Data type to configure the formats.
|
protected Properties |
properties
Properties for the pulsar producer.
|
protected PulsarSinkSemantic |
semantic
Sink commit semantic.
|
protected String |
serviceUrl |
protected String |
topic
The pulsar topic to write to.
|
protected boolean |
upsertMode
Flag to determine sink mode.
|
protected org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> |
valueEncodingFormat
Sink format for encoding records to pulsar.
|
protected int[] |
valueProjection
Indices that determine the value fields and the source position in the consumed row.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PulsarDynamicTableSink(String serviceUrl,
String adminUrl,
String topic,
org.apache.flink.table.types.DataType physicalDataType,
Properties properties,
org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> keyEncodingFormat,
org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> valueEncodingFormat,
int[] keyProjection,
int[] valueProjection,
String keyPrefix,
PulsarSinkSemantic semantic,
String formatType,
boolean upsertMode,
Integer parallelism,
org.apache.pulsar.client.api.MessageRouter messageRouter) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyWritableMetadata(List<String> metadataKeys,
org.apache.flink.table.types.DataType consumedDataType) |
String |
asSummaryString() |
org.apache.flink.table.connector.sink.DynamicTableSink |
copy() |
boolean |
equals(Object o) |
org.apache.flink.table.connector.ChangelogMode |
getChangelogMode(org.apache.flink.table.connector.ChangelogMode requestedMode) |
org.apache.pulsar.client.api.MessageRouter |
getMessageRouter() |
org.apache.flink.table.connector.sink.DynamicTableSink.SinkRuntimeProvider |
getSinkRuntimeProvider(org.apache.flink.table.connector.sink.DynamicTableSink.Context context) |
int |
hashCode() |
Map<String,org.apache.flink.table.types.DataType> |
listWritableMetadata() |
protected List<String> metadataKeys
protected final org.apache.flink.table.types.DataType physicalDataType
protected final String topic
protected final String serviceUrl
protected final String adminUrl
protected final Properties properties
@Nullable protected final org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> keyEncodingFormat
protected final org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> valueEncodingFormat
protected final int[] keyProjection
protected final int[] valueProjection
@Nullable protected final String keyPrefix
protected final boolean upsertMode
@Nullable protected final Integer parallelism
protected final PulsarSinkSemantic semantic
protected PulsarDynamicTableSink(String serviceUrl, String adminUrl, String topic, org.apache.flink.table.types.DataType physicalDataType, Properties properties, @Nullable org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> keyEncodingFormat, org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> valueEncodingFormat, int[] keyProjection, int[] valueProjection, @Nullable String keyPrefix, PulsarSinkSemantic semantic, String formatType, boolean upsertMode, @Nullable Integer parallelism, @Nullable org.apache.pulsar.client.api.MessageRouter messageRouter)
public org.apache.flink.table.connector.ChangelogMode getChangelogMode(org.apache.flink.table.connector.ChangelogMode requestedMode)
getChangelogMode in interface org.apache.flink.table.connector.sink.DynamicTableSinkpublic org.apache.flink.table.connector.sink.DynamicTableSink.SinkRuntimeProvider getSinkRuntimeProvider(org.apache.flink.table.connector.sink.DynamicTableSink.Context context)
getSinkRuntimeProvider in interface org.apache.flink.table.connector.sink.DynamicTableSinkpublic org.apache.pulsar.client.api.MessageRouter getMessageRouter()
public org.apache.flink.table.connector.sink.DynamicTableSink copy()
copy in interface org.apache.flink.table.connector.sink.DynamicTableSinkpublic String asSummaryString()
asSummaryString in interface org.apache.flink.table.connector.sink.DynamicTableSinkpublic Map<String,org.apache.flink.table.types.DataType> listWritableMetadata()
listWritableMetadata in interface org.apache.flink.table.connector.sink.abilities.SupportsWritingMetadataCopyright © 2019–2021 The Apache Software Foundation. All rights reserved.