I have a copy of the data now, the data for each line is as follows。
A
B
C
QW
OO
P
...
Now I want to merge every three lines of behavior, as follows:
ABC
QWOOP
...
What should I code this function?
eg. val data = sc.textFile("path")
Thanks!