I have the below code which uses spark and Java 8.
JavaRDD<AdLog> accessLogs = logLines.map(adLog::parseFromLogLine).cache();
I am trying to convert this to Java 7. I found alternative ways for most of the code but I couldn't find the alternative for this specific line of code. parseFromLogLine is a method inside the class AdLog of which adLog is an object. When a line of text is encountered it should call the parseFromLogLine method inside AdLog class. The method returns a new AdLog object. How can I achieve this using Java 7. Any help would be much appreciated. Thanks in advance.