Class CustomDerivedToBaseFunction
- java.lang.Object
-
- org.apache.pulsar.functions.api.examples.CustomDerivedToBaseFunction
-
- All Implemented Interfaces:
org.apache.pulsar.functions.api.Function<CustomDerivedObject,CustomBaseObject>
public class CustomDerivedToBaseFunction extends java.lang.Object implements org.apache.pulsar.functions.api.Function<CustomDerivedObject,CustomBaseObject>
Example of function converting a derived object to a base object.
-
-
Constructor Summary
Constructors Constructor Description CustomDerivedToBaseFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomBaseObjectprocess(CustomDerivedObject input, org.apache.pulsar.functions.api.Context context)
-
-
-
Method Detail
-
process
public CustomBaseObject process(CustomDerivedObject input, org.apache.pulsar.functions.api.Context context)
- Specified by:
processin interfaceorg.apache.pulsar.functions.api.Function<CustomDerivedObject,CustomBaseObject>
-
-