Re: Row.setField returning row itself

2019-03-22 Thread Flavio Pompermaier
You're right Chesnay, I didn't remember that .of was introduced :( Sorry! On Fri, Mar 22, 2019 at 12:35 PM Chesnay Schepler wrote: > You could even use a method reference here: "map(Row::of)" > > On 22/03/2019 12:33, Chesnay Schepler wrote: > > I can see that this would be convenient but please

Re: Row.setField returning row itself

2019-03-22 Thread Chesnay Schepler
You could even use a method reference here: "map(Row::of)" On 22/03/2019 12:33, Chesnay Schepler wrote: I can see that this would be convenient but please find a better example; yours can be solved easily using "Row.of(value)". On 22/03/2019 12:26, Flavio Pompermaier wrote: Hi all, many times

Re: Row.setField returning row itself

2019-03-22 Thread Chesnay Schepler
I can see that this would be convenient but please find a better example; yours can be solved easily using "Row.of(value)". On 22/03/2019 12:26, Flavio Pompermaier wrote: Hi all, many times I had the feeling that allowing Row.setField() to return the modified object instead of void would really

Row.setField returning row itself

2019-03-22 Thread Flavio Pompermaier
Hi all, many times I had the feeling that allowing Row.setField() to return the modified object instead of void would really make the (Java) code cleaner in a very unobtrusive way. For example, I could write something like: DataSet columnData = input.map(value -> new Row(1).setField(0, value)) in