@PublicEvolving public interface TopicExtractor<IN> extends Serializable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
TopicExtractor.TopicMetadataProvider
A wrapper for
PulsarAdmin instance, we won't expose the Pulsar admin interface for
better control the abstraction. |
| Modifier and Type | Method and Description |
|---|---|
TopicPartition |
extract(IN in,
TopicExtractor.TopicMetadataProvider provider) |
default void |
open(SinkConfiguration sinkConfiguration)
Implement this method if you have some non-serializable field.
|
TopicPartition extract(IN in, TopicExtractor.TopicMetadataProvider provider)
in - The message would be written to Pulsar.provider - Used for query topic metadata.TopicRouter if you return a topic name without partition information.default void open(SinkConfiguration sinkConfiguration)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.