T - The type created by the deserialization schema.@Internal public class PulsarDeserializationSchemaWrapper<T> extends Object implements PulsarDeserializationSchema<T>
| Constructor and Description |
|---|
PulsarDeserializationSchemaWrapper(org.apache.flink.api.common.serialization.DeserializationSchema<T> deserializationSchema) |
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(org.apache.pulsar.client.api.Message message)
Deserializes the Pulsar message.
|
org.apache.flink.api.common.typeinfo.TypeInformation<T> |
getProducedType() |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeserializepublic PulsarDeserializationSchemaWrapper(org.apache.flink.api.common.serialization.DeserializationSchema<T> deserializationSchema)
public void open(org.apache.flink.api.common.serialization.DeserializationSchema.InitializationContext context)
throws Exception
open in interface PulsarDeserializationSchema<T>Exceptionpublic boolean isEndOfStream(T nextElement)
PulsarDeserializationSchemaisEndOfStream in interface PulsarDeserializationSchema<T>nextElement - The element to test for the end-of-stream signal.public T deserialize(org.apache.pulsar.client.api.Message message) throws IOException
PulsarDeserializationSchemadeserialize in interface PulsarDeserializationSchema<T>message - Pulsar message to be deserialized.IOExceptionCopyright © 2019–2021 The Apache Software Foundation. All rights reserved.