T - The output type of the message.@Internal public class PulsarSchemaWrapper<T> extends Object implements PulsarDeserializationSchema<T>
Schema. Pulsar would deserialize
the message and pass it to flink with a auto generate or given TypeInformation.| Constructor and Description |
|---|
PulsarSchemaWrapper(PulsarSchema<T> pulsarSchema) |
| 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() |
PulsarSchema<?> |
pulsarSchema() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflinkSchema, flinkTypeInfo, open, open, pulsarSchema, pulsarSchema, pulsarSchemapublic PulsarSchemaWrapper(PulsarSchema<T> pulsarSchema)
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.Exceptionpublic org.apache.flink.api.common.typeinfo.TypeInformation<T> getProducedType()
getProducedType in interface org.apache.flink.api.java.typeutils.ResultTypeQueryable<T>public PulsarSchema<?> pulsarSchema()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.