Scala mapValues() with example

Welcome to Scala series. In this tutorial, you will learn about Scala mapValues() with example. Scala mapValues() operations is similar to map() where it can be used to transform the input from one form to another. But mapValues() are applicable only in tuples.This means the input that we are dealing with should have tuples. Tuple is something like (key,value) pairs. mapValues() […]

Scala word count program example

Welcome to Scala series. In this tutorial, you will learn how to write a Scala word count program with example.This post also helps you to understand what is MapReduce and how can we use the MapReduce model to write a word count program. Please note, we do not use Apache Spark functionality. This is a plain and simple program using Scala […]

Scala MapReduce with example

Welcome to Scala series. In this tutorial, you will learn about Scala MapReduce with an example. This post covers how to write basic map reduce program in Scala and please note we will not use Apache Spark code or functionality. So let us get started.. By the way this is my first post in 2020 🙂 What is MapReduce? MapReduce is […]

Spark RDD features explained in detail

Hi! Welcome to the Apache Spark tutorial series. This tutorial is about Spark RDD features explained in detail. Before proceeding with this tutorial/Blog I suggest you read my previous blogs on Apache Spark where I have explained Apache Spark features and its architecture in detail. Please visit this link for more information. In the previous post, I have discussed RDDs in detail. […]

Spark RDD – Resilient distributed dataset – Internals

Hey Buddy! Welcome to the Apache Spark tutorial series. This tutorial is about to Understand Spark RDD – Resilient distributed dataset – Internals. But Wait!! Before proceeding with this tutorial/Blog I suggest you read my previous blogs on Apache Spark where I have explained Apache Spark features and its architecture in detail. Please visit this link for more information. If you have […]

Understand SparkSession in detail

Hey There! Welcome to the Apache Spark tutorial series. This tutorial is about Understand SparkSession in detail. But Wait!! Before proceeding with this tutorial/Blog I suggest you read my previous blogs on Apache Spark where I have explained Apache Spark features and its architecture in detail. Please visit this link for more information. If you have basic knowledge of Apache […]

Understand SparkContext in detail

Hey There! Welcome to the Apache Spark tutorial series. This tutorial is about Understand SparkContext in detail. But Wait!! Before proceeding with this tutorial/Blog I suggest you read my previous blogs on Apache Spark where I have explained Apache Spark features and its architecture in detail. Please visit this link for more information. If you have basic knowledge of Apache […]

How to remove elements from Set in Scala

Welcome to Scala series. In this tutorial, you will learn about how to remove elements from Set in Scala. Scala set is a collection that stores only unique values. It doesn’t allow duplicates. Set is Iterable and inherits all functionality of the iterable interface. Check out this detailed post on Scala Set for various Set operations. Let us now understand how […]

How to add elements to Set in Scala

Welcome to Scala series. In this tutorial, you will learn about how to add elements to Set in Scala. Scala set is a collection that stores only unique values. It doesn’t allow duplicates. Set is Iterable and inherits all functionality of the iterable interface. Check out this detailed post on Scala Set for various Set operations. Let us now understand how […]

How to use Scala Set collection

Welcome to Scala series. In this tutorial, you will learn How to use Scala Set collection and I have explained most of the Set operations in detail. Set is a collection to store values that don’t have/allow duplicate values. Always Set will have unique elements. Set is Iterable and inherits all functionality of the iterable interface. There are two variants of […]

Scala list isEmpty() operation with examples

Welcome to Scala series. In this tutorial, you will learn about the Scala List isEmpty() operation with examples. Scala isEmpty() allows checking if the list is empty. Scala isEmpty() operation is applicable for all types of Scala collections Scala isEmpty() returns a boolean value. It returns true if the list is empty else false. isEmpty() Syntax final def isEmpty: Boolean Tests […]

Scala list splitAt() operation with examples

Welcome to Scala series.. In this tutorial, you will learn about the Scala List splitAt() operation with examples. Scala splitAt() operation allows us to split the collection into two different collections based on the given index. splitAt() takes an index which then splits the collection into two different collections based on the index. splitAt() returns a tuple that has two lists […]

Scala list span() operation with examples

Welcome to Scala series. In this tutorial, you will learn about the Scala List span() operation with examples. Scala span() operation allows us to split the collection into two different collections based on the given predicate operation.span() takes a predicate/boolean expression, prefix elements satisfying the condition will be added to one list and the element which doesn’t satisfy will be added […]