A Paper A Week, Spark, Big Data.
rawData.filter(condition1) dataAfterApplyingSecondFilter = dataAfterApplyingFirstFilter.filter(condition2) dataAfterApplyingSecondFilter.save() The execution will take place on line 4, and the two filter conditions can be merged into a single condition to avoid multiple passes over the data. RDD