Class CustomBaseToDerivedFunction
java.lang.Object
org.apache.pulsar.functions.api.examples.CustomBaseToDerivedFunction
- All Implemented Interfaces:
org.apache.pulsar.functions.api.Function<CustomBaseObject,CustomDerivedObject>
public class CustomBaseToDerivedFunction
extends Object
implements org.apache.pulsar.functions.api.Function<CustomBaseObject,CustomDerivedObject>
Example of function doing a type object conversion between input ann output type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess(CustomBaseObject input, org.apache.pulsar.functions.api.Context context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.functions.api.Function
close, initialize
-
Constructor Details
-
CustomBaseToDerivedFunction
public CustomBaseToDerivedFunction()
-
-
Method Details
-
process
public CustomDerivedObject process(CustomBaseObject input, org.apache.pulsar.functions.api.Context context) - Specified by:
processin interfaceorg.apache.pulsar.functions.api.Function<CustomBaseObject,CustomDerivedObject>
-