java - Emit a List From Mapper -
I am trying to emit a list from Mapper. list & lt; String & gt; MapFinalList = New Array's & lt; String & gt; ();
Is there a way to leave a list or should I make
custom writable for my list?
Please suggest.
UPDATE
I tried to use it the Arrayable
Public static class ListWritable Array {public list ) class); }} List configuration pass list = new listable (); Arrayable [] data = new derivative [dummy. Size ()]; (Int k = 0; k & lt; dummy.size (); k ++) {data [k] = new derivative (dummy to arrays (new string [dummy () ())); } PassList.set (data); Context.write (new text (""), passList); but showing the output as
pck.Driver$ListWritable@75e287e5 string in a single shot, I will not apply a loop to the mapper, and every string Get out
Comments
Post a Comment