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 java.lang.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 Constructor Description CustomBaseToDerivedFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomDerivedObjectprocess(CustomBaseObject input, org.apache.pulsar.functions.api.Context context)
-
-
-
Method Detail
-
process
public CustomDerivedObject process(CustomBaseObject input, org.apache.pulsar.functions.api.Context context)
- Specified by:
processin interfaceorg.apache.pulsar.functions.api.Function<CustomBaseObject,CustomDerivedObject>
-
-