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() |
org.apache.pulsar.client.api.Schema<org.apache.flink.types.Row> |
getSchema() |
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, waitbuilder, deserialize, valueOnlygetTargetTopic, setNumParallelInstances, setParallelInstanceIdpublic 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
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<org.apache.flink.types.Row>message - The message, as a byte array.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>public org.apache.pulsar.client.api.Schema<org.apache.flink.types.Row> getSchema()
getSchema in interface PulsarContextAware<org.apache.flink.types.Row>Copyright © 2019–2022 The Apache Software Foundation. All rights reserved.