I'm trying to call the functions.typedLit from Spark library in my other question. And it asks for two parameters, a literal object and its type (a TypeTag).
The first argument, I can come up with myself (I think). But as for the second one, I don't know how to instantiate an object for it. I'm trying to pass the TypeTag<Seq<Integer>> as the second parameter.
Can someone please tell how to create the TypeTag for Seq<Integer> in Java? Here's the code I'm trying to complete:
Seq<Integer> seq = JavaConverters
.asScalaIteratorConverter((new ArrayList<Integer>()).iterator())
.asScala()
.toSeq();
Column litColumn = functions.<Seq<Integer>>typedLit(seq, ???)