Hi All, I would like to compare any two adjacent elements in one given rdd, just as the single machine code part: int a[N] = {...};for (int i=0; i < N - 1; ++i) { compareFun(a[i], a[i+1]);}... mapPartitions may work for some situations, however, it could not compare elements in different partitions. foreach also seems not work. Thanks,Zhiliang
- the way to compare any two adjacent elements in one rdd Zhiliang Zhu
- Re: the way to compare any two adjacent elements in one ... DB Tsai
- Re: the way to compare any two adjacent elements in ... Zhiliang Zhu
- Re: the way to compare any two adjacent elements... Zhiliang Zhu
- Re: the way to compare any two adjacent elements in ... Zhiliang Zhu
- Re: the way to compare any two adjacent elements... DB Tsai
- Re: the way to compare any two adjacent elem... Zhiliang Zhu
- what's the way to access the last eleme... Zhiliang Zhu