There are two types of transformations on DStream.
Stateless Transformations
Stateful Transformations
Stateless Transformations: The batch processing doesn’t depend on the previous output batch.
Example: reduceByKey(), map(), filter().
Stateful Transformations: The batch processing depends on the previous batch intermediate results.
Example: Sliding windows transformations.