public class PulsarTypeInformationWrapper<T> extends Object implements PulsarDeserializationSchema<T>
PulsarDeserializationSchema. We would create a
flink TypeSerializer by using given ExecutionConfig. This execution config could be
ExecutionEnvironment.getConfig().| Constructor and Description |
|---|
PulsarTypeInformationWrapper(org.apache.flink.api.common.typeinfo.TypeInformation<T> information,
org.apache.flink.api.common.ExecutionConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(org.apache.pulsar.client.api.Message<byte[]> message,
org.apache.flink.util.Collector<T> out)
Deserializes the pulsar message.
|
org.apache.flink.api.common.typeinfo.TypeInformation<T> |
getProducedType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflinkSchema, flinkTypeInfo, open, open, pulsarSchema, pulsarSchema, pulsarSchemapublic PulsarTypeInformationWrapper(org.apache.flink.api.common.typeinfo.TypeInformation<T> information, org.apache.flink.api.common.ExecutionConfig config)
public void deserialize(org.apache.pulsar.client.api.Message<byte[]> message,
org.apache.flink.util.Collector<T> out)
throws Exception
PulsarDeserializationSchemaYou can output multiple message by using the Collector. Note that number and size
of the produced records should be relatively small. Depending on the source implementation
records can be buffered in memory or collecting records might delay emitting checkpoint
barrier.
deserialize in interface PulsarDeserializationSchema<T>message - The message decoded by pulsar.out - The collector to put the resulting messages.ExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.