June 2017
Beginner to intermediate
296 pages
7h 4m
English
In addition to transforming one RDD into another, you can also perform actions on to an RDD. So once you have the data that you want in an RDD dataset, you can then perform an action on it to actually get a result. This is a list of RDD actions:
So you can call collect, to just dump out all the values that are in there right now and just print them all out or whatever you want to do with them. You can call count to get a count of all the values that are in it. Call countByValue, which will actually give you a breakdown by unique value of how many times each value occurs in your RDD. There are actions such as take and top that let you sample a few values from the RDD final ...
Read now
Unlock full access