public class PulsarDeserializer extends Object implements PulsarDeserializationSchema<org.apache.flink.types.Row>
| Modifier and Type | Class and Description |
|---|---|
static class |
PulsarDeserializer.ArrayDataUpdater
Flink array field updater.
|
static interface |
PulsarDeserializer.BinFunction<A,B>
Binary function interface that takes three arguments and returns nothing.
|
static interface |
PulsarDeserializer.Function<T,R>
Represents a function that accepts one argument and produces a result.
|
static class |
PulsarDeserializer.NewDecimalConversion
DecimalConversion.
|
static class |
PulsarDeserializer.RowUpdater
Flink Row field updater.
|
static interface |
PulsarDeserializer.TriFunction<A,B,C>
Trinary function interface that takes three arguments and returns nothing.
|
| Constructor and Description |
|---|
PulsarDeserializer(org.apache.pulsar.common.schema.SchemaInfo schemaInfo,
JSONOptions parsedOptions,
boolean useExtendField) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.types.Row |
deserialize(org.apache.pulsar.client.api.Message message)
Deserializes the Pulsar message.
|
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> |
getProducedType() |
boolean |
isEndOfStream(org.apache.flink.types.Row 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 PulsarDeserializer(org.apache.pulsar.common.schema.SchemaInfo schemaInfo,
JSONOptions parsedOptions,
boolean useExtendField)
public void open(org.apache.flink.api.common.serialization.DeserializationSchema.InitializationContext context)
throws Exception
open in interface PulsarDeserializationSchema<org.apache.flink.types.Row>Exceptionpublic boolean isEndOfStream(org.apache.flink.types.Row nextElement)
PulsarDeserializationSchemaisEndOfStream in interface PulsarDeserializationSchema<org.apache.flink.types.Row>nextElement - The element to test for the end-of-stream signal.public org.apache.flink.types.Row deserialize(org.apache.pulsar.client.api.Message message)
throws IOException
PulsarDeserializationSchemadeserialize in interface PulsarDeserializationSchema<org.apache.flink.types.Row>message - Pulsar message to be deserialized.IOExceptionpublic org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> getProducedType()
getProducedType in interface org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.types.Row>Copyright © 2019–2021 The Apache Software Foundation. All rights reserved.