No, because Function1 from Scala is not a functional interface.
You can see a simple example of what I'm trying to accomplish In the unit
test here:
https://github.com/void/spark/blob/java-transform/sql/core/src/test/java/test/org/apache/spark/sql/JavaDataFrameSuite.java#L73


On Sun, Jul 1, 2018 at 2:48 PM Sean Owen <sro...@gmail.com> wrote:

> Don't Java 8 lambdas let you do this pretty immediately? Can you give an
> example here of what you want to do and how you are trying to do it?
>
> On Sun, Jul 1, 2018, 12:42 PM Ismael Carnales <icarna...@gmail.com> wrote:
>
>> Hi,
>>  it would be nice to have an easier way to use the Dataset transform
>> method from Java than implementing a Function1 from Scala.
>>
>> I've made a simple implentation here:
>>
>> https://github.com/void/spark/tree/java-transform
>>
>> Should I open a JIRA?
>>
>> Ismael Carnales
>>
>

Reply via email to