Class MergeTopicFunction
- java.lang.Object
-
- org.apache.pulsar.functions.api.examples.MergeTopicFunction
-
- All Implemented Interfaces:
org.apache.pulsar.functions.api.Function<org.apache.pulsar.client.api.schema.GenericRecord,byte[]>
public class MergeTopicFunction extends java.lang.Object implements org.apache.pulsar.functions.api.Function<org.apache.pulsar.client.api.schema.GenericRecord,byte[]>Merge various schemas data to a topic.
-
-
Constructor Summary
Constructors Constructor Description MergeTopicFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]process(org.apache.pulsar.client.api.schema.GenericRecord genericRecord, org.apache.pulsar.functions.api.Context context)
-
-
-
Method Detail
-
process
public byte[] process(org.apache.pulsar.client.api.schema.GenericRecord genericRecord, org.apache.pulsar.functions.api.Context context) throws java.lang.Exception- Specified by:
processin interfaceorg.apache.pulsar.functions.api.Function<org.apache.pulsar.client.api.schema.GenericRecord,byte[]>- Throws:
java.lang.Exception
-
-