Stateless transformations transform one DStream to another by applying transformations to each of the RDDs within the DStream. Transformations such as map(), flatMap(), union(), join(), and reduceByKey are all examples of stateless transformations.
Shown in the following is an illustration showing a map() transformation on inputDStream to generate a new mapDstream: