@Deprecated public class PulsarDeserializationSchemaWrapper<T> extends Object implements PulsarDeserializationSchema<T>, PulsarContextAware<T>
| Constructor and Description |
|---|
PulsarDeserializationSchemaWrapper(org.apache.flink.api.common.serialization.DeserializationSchema<T> deSerializationSchema)
Deprecated.
|
PulsarDeserializationSchemaWrapper(org.apache.flink.api.common.serialization.DeserializationSchema<T> deSerializationSchema,
org.apache.flink.table.types.DataType dataType)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(org.apache.pulsar.client.api.Message<T> message)
Deprecated.
Deserializes the Pulsar message.
|
org.apache.flink.api.common.typeinfo.TypeInformation<T> |
getProducedType()
Deprecated.
|
org.apache.pulsar.client.api.Schema<T> |
getSchema()
Deprecated.
|
Optional<String> |
getTargetTopic(T element)
Deprecated.
Returns the topic that the presented element should be sent to.
|
boolean |
isEndOfStream(T nextElement)
Deprecated.
Method to decide whether the element signals the end of the stream.
|
void |
open(org.apache.flink.api.common.serialization.DeserializationSchema.InitializationContext context)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilder, deserialize, valueOnlysetNumParallelInstances, setParallelInstanceId@Deprecated public PulsarDeserializationSchemaWrapper(org.apache.flink.api.common.serialization.DeserializationSchema<T> deSerializationSchema, org.apache.flink.table.types.DataType dataType)
@Deprecated public PulsarDeserializationSchemaWrapper(org.apache.flink.api.common.serialization.DeserializationSchema<T> deSerializationSchema)
public Optional<String> getTargetTopic(T element)
PulsarContextAwaregetTargetTopic in interface PulsarContextAware<T>public org.apache.pulsar.client.api.Schema<T> getSchema()
getSchema in interface PulsarContextAware<T>public org.apache.flink.api.common.typeinfo.TypeInformation<T> getProducedType()
getProducedType in interface org.apache.flink.api.java.typeutils.ResultTypeQueryable<T>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<T> message) throws IOException
PulsarDeserializationSchemaCan 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.
deserialize in interface PulsarDeserializationSchema<T>message - The message, as a byte array.IOExceptionCopyright © 2019–2022 The Apache Software Foundation. All rights reserved.