T - The type created by the keyed deserialization schema.@PublicEvolving public interface PulsarDeserializationSchema<T> extends Serializable, org.apache.flink.api.java.typeutils.ResultTypeQueryable<T>
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(org.apache.pulsar.client.api.Message message)
Deserializes the Pulsar message.
|
default void |
deserialize(org.apache.pulsar.client.api.Message message,
org.apache.flink.util.Collector<T> out)
Deserializes the Pulsar message.
|
boolean |
isEndOfStream(T nextElement)
Method to decide whether the element signals the end of the stream.
|
void |
open(org.apache.flink.api.common.serialization.DeserializationSchema.InitializationContext context) |
boolean isEndOfStream(T nextElement)
nextElement - The element to test for the end-of-stream signal.T deserialize(org.apache.pulsar.client.api.Message message) throws IOException
message - Pulsar message to be deserialized.IOExceptiondefault void deserialize(org.apache.pulsar.client.api.Message message,
org.apache.flink.util.Collector<T> out)
throws Exception
Can output multiple records through 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.
message - The message, as a byte array.out - The collector to put the resulting messages.ExceptionCopyright © 2019–2021 The Apache Software Foundation. All rights reserved.