In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input and Twitter handles are shown as follows: "We can include other contexts through the use of the include
directive."
A block of code for creating the Spark session in a Windows environment is set as follows:
[default] SparkSession spark = SparkSession .builder() .appName("JavaFPGrowthExample") .master("local[*]") .config("spark.sql.warehouse.dir", "E:/Exp/") .getOrCreate();
Or creating simple RDD from the input dataset is set as follows:
[default] String filename = “input/dataset.txt”; RDD<String> data = spark.sparkContext().textFile(fileName, 1);
Any command-line input or output is written as follows:
$ scp -i /usr/local/key/my-key-pair.pem /usr/local/code/FPGrowth-0.0.1-SNAPSHOT-jar-with-dependencies.jar [email protected]:/home/ec2-user/
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialogue boxes, for example, appear in the text like this: "Clicking the Next button moves you to the next screen".