Re: Adding custom Tuple to a DataSet

2015-05-28 Thread Amit Pawar
Thanks Stephan :) Will try the same. Thanks and Regards Amit Pawar On Thu, May 28, 2015 at 10:41 AM, Stephan Ewen wrote: > Hi! > > If you want to have type hierarchies (like base tuples and different > classes), you cannot use tuples (they are expected to be 'exact schema'), > but you can use

Re: Adding custom Tuple to a DataSet

2015-05-28 Thread Stephan Ewen
Hi! If you want to have type hierarchies (like base tuples and different classes), you cannot use tuples (they are expected to be 'exact schema'), but you can use other classes. Create your own tuple POJO with subclasses, and it should work. Stephan On Thu, May 28, 2015 at 1:30 AM, Amit Pawar

Adding custom Tuple to a DataSet

2015-05-27 Thread Amit Pawar
Hi Is there a way, where I can add a custom (newly created) Tuple to a new DataSet or already existing DataSet? DataSet set = env.fromElements (myCustomTuple); works fine, but only with same datatype in case of Tuple2 or higher. Tuple2 creates a problem (as stated in JavaDoc it needs all elements