Foreachpartition Spark Java Example, This a shorthand for df.