Learning Apache Apex
by Ananth Gundabattula, Thomas Weise, Munagala V. Ramanath, David Yan, Kenneth Knowles
Custom functions
Previous operators are focused on providing the functionality through configuration, without writing additional code. In some situations, the prebuilt logic may not be sufficient and for those cases the user would have to write a custom operator (or extend an existing one). We covered the Apex operator model in the previous chapter. It is very flexible but, on the flipside (when writing operators from scratch), the user has to deal with ports and other code that often isn't necessary, unless the requirements are very advanced.
The high-level API has removed that complexity and one of the operators that internally powers the high-level API is the function operator, which allows the user to implement a map, flat map, or filter ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access