flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kürşat Kurt <kur...@kursatkurt.com>
Subject Wordindex conversation.
Date Mon, 10 Oct 2016 21:49:47 GMT
Hi;

 

I have MainDataset (Label,WordList) :

 

(0,List(a, b, c, d, e, f, g))

(1,List(b, c, f, a, g))

 

..and, wordIndex dataset(created with .zipWithIndex) : 

 

wordIndex> (0,a)

wordIndex> (1,b)

wordIndex> (2,c)

wordIndex> (3,d)

wordIndex> (4,e)

wordIndex> (5,f)

wordIndex> (6,g)

 

How can i convert mainDataset to indexed wordList dataset like this:

(0,List(1,2,3,4,5,6))

(1,List(2,3,5,0,6)

 


Mime
View raw message