Our Java examples are written to work with Java version 6 and
higher. Java 8 introduces a new syntax called lambdas that makes
writing inline functions much easier, which can simplify Spark
code. We have chosen not to take advantage of this syntax in most
of our examples, as most organizations are not yet using Java 8. If
you would like to try Java 8 syntax, you can see the Databricks blog
post on this topic. Some of the examples will also be ported to Java
8 and posted to the book’s GitHub site.
This book is here to help you get your job done. In general, if example code is offered
with this book, you may use it in your programs and documentation. You do not
need to contact us for permission unless you’re reproducing a significant portion of
the code. For example, writing a program that uses several chunks of code from this
book does not require permission. Selling or distributing a CD-ROM of examples
from O’Reilly books does require permission. Answering a question by citing this
book and quoting example code does not require permission. Incorporating a signifi‐
cant amount of example code from this book into your product’s documentation
does require permission.
We appreciate, but do not require, attribution. An attribution usually includes the
title, author, publisher, and ISBN. For example: “Learning Spark by Holden Karau,
Andy Konwinski, Patrick Wendell, and Matei Zaharia (O’Reilly). Copyright 2015
If you feel your use of code examples falls outside fair use or the permission given
above, feel free to contact us at firstname.lastname@example.org.
Safari® Books Online
Safari Books Online is an on-demand digital library that deliv‐
ers expert content in both book and video form from the
world’s leading authors in technology and business.
Technology professionals, software developers, web designers, and business and crea‐
tive professionals use Safari Books Online as their primary resource for research,
problem solving, learning, and certification training.
Safari Books Online offers a range of plans and pricing for enterprise, government,
education, and individuals.
Members have access to thousands of books, training videos, and prepublication
manuscripts in one fully searchable database from publishers like O’Reilly Media,
Prentice Hall Professional, Addison-Wesley Professional, Microsoft Press, Sams,
Que, Peachpit Press, Focal Press, Cisco Press, John Wiley & Sons, Syngress, Morgan
xiv | Preface