concept repartition() in category spark
appears as: repartition()

This is an excerpt from Manning's book Spark in Action, Second Edition.
Lab #100 uses
repartition(), but you may see in documentation and source code thecoalesce()method, which does the same thing. Other signatures for therepartition()method allow you to fine-tune the repartition operation, using column expressions, ranges, and more. More information is available at http://mng.bz/9wZa .