| Modifier and Type | Method and Description |
|---|---|
PulsarSinkBuilder<IN> |
PulsarSinkBuilder.setTopicRouter(TopicRouter<IN> topicRouter)
Use a custom topic router instead predefine topic routing.
|
| Constructor and Description |
|---|
PulsarWriter(SinkConfiguration sinkConfiguration,
PulsarSerializationSchema<IN> serializationSchema,
TopicRegister<IN> topicRegister,
TopicRouter<IN> topicRouter,
MessageDelayer<IN> messageDelayer,
org.apache.pulsar.client.api.CryptoKeyReader cryptoKeyReader,
org.apache.flink.api.connector.sink2.Sink.InitContext initContext)
Constructor creating a Pulsar writer.
|
| Modifier and Type | Class and Description |
|---|---|
class |
KeyHashTopicRouter<IN>
If you choose the
TopicRoutingMode.MESSAGE_KEY_HASH policy, we would use this
implementation. |
class |
RoundRobinTopicRouter<IN>
If you choose the
TopicRoutingMode.ROUND_ROBIN policy, we would use this implementation. |
| Modifier and Type | Method and Description |
|---|---|
static TopicRouter<org.apache.flink.table.data.RowData> |
PulsarTableOptionUtils.getTopicRouter(org.apache.flink.configuration.ReadableConfig readableConfig,
ClassLoader classLoader) |
| Constructor and Description |
|---|
PulsarTableSink(PulsarTableSerializationSchemaFactory serializationSchemaFactory,
org.apache.flink.table.connector.ChangelogMode changelogMode,
List<String> topics,
Properties properties,
org.apache.flink.connector.base.DeliveryGuarantee deliveryGuarantee,
TopicRouter<org.apache.flink.table.data.RowData> topicRouter,
TopicRoutingMode topicRoutingMode,
long messageDelayMillis) |
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.