concept function in category spark

appears as: function, functions, function, functions, The function
Spark in Action, Second Edition

This is an excerpt from Manning's book Spark in Action, Second Edition.

If you do not find a function that does what you want (for example, a specific transformation or a call to an existing library you may have), you can write your own functions. These are called user-defined functions ( UDFs ), which you will study in chapter 16.

Let’s look at the methods and functions you need now:

You may be familiar with lambda functions in Java. If you are not, Java 8 introduced a new type of function, which can be created without belonging to a class. Lambda functions can be passed around as a parameter and are executed on demand. It’s Java’s first step toward functional programming. The notation for a lambda function is <variable> -> <function> .