You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by Henry Saputra <he...@gmail.com> on 2014/06/26 08:05:06 UTC
Maintaining Scala and Java APIs consistencies?
Hi All,
How does Flink maintain the Scala and Java consistencies and check
whether new API in Java also expose or implemented in Scala?
Thanks,
Henry
Re: Maintaining Scala and Java APIs consistencies?
Posted by Henry Saputra <he...@gmail.com>.
Cool, thanks guys! I will create ticket and work on it to add
"validation" tool for consistencies of the APIs.
- Henry
On Fri, Jun 27, 2014 at 2:40 AM, Stephan Ewen <se...@apache.org> wrote:
> Agree, the Java API is where the main dev goes right now. We will try to
> sync the Scala API up soon.
>
> The goood thing is that most of the code we wrote for the Java API is not
> really part of the Java API, but rather part of the common type system,
> utilities, and so on.
>
> The Scala API will benefit from that as well.
Re: Maintaining Scala and Java APIs consistencies?
Posted by Stephan Ewen <se...@apache.org>.
Agree, the Java API is where the main dev goes right now. We will try to
sync the Scala API up soon.
The goood thing is that most of the code we wrote for the Java API is not
really part of the Java API, but rather part of the common type system,
utilities, and so on.
The Scala API will benefit from that as well.
Re: Maintaining Scala and Java APIs consistencies?
Posted by Ufuk Celebi <u....@fu-berlin.de>.
> On 26 Jun 2014, at 23:21, Henry Saputra <he...@gmail.com> wrote:
>
> Hi Fabian,
>
> Nothing in particular about API consistency, but I want to make one of
> them (maybe Java or Scala) as the "source of truth" and the other as
> the replica so we could run some kind of tool check to make sure APIs
> are consistent. Maybe through reflection or some sort.
Sounds great. :) I think source of truth would be the new Java API at the moment.
Re: Maintaining Scala and Java APIs consistencies?
Posted by Henry Saputra <he...@gmail.com>.
Hi Fabian,
Nothing in particular about API consistency, but I want to make one of
them (maybe Java or Scala) as the "source of truth" and the other as
the replica so we could run some kind of tool check to make sure APIs
are consistent. Maybe through reflection or some sort.
- Henry
On Thu, Jun 26, 2014 at 12:34 AM, Fabian Hueske <fh...@apache.org> wrote:
> Right now, both APIs are independently developed.
> Of course we aim to provide the same functionality (in a similar way if
> possible) with both APIs but we do not have a formal process to achieve
> this.
> The core set of functionality is covered by some example programs which are
> implemented for both APIs.
>
> I think this will become a more important issue in the future, esp. if we
> add more APIs (Python is on the way).
> Are there any best practices to maintain API consistency?
>
> Fabian
>
>
> 2014-06-26 8:05 GMT+02:00 Henry Saputra <he...@gmail.com>:
>
>> Hi All,
>>
>> How does Flink maintain the Scala and Java consistencies and check
>> whether new API in Java also expose or implemented in Scala?
>>
>> Thanks,
>>
>> Henry
>>
Re: Maintaining Scala and Java APIs consistencies?
Posted by Fabian Hueske <fh...@apache.org>.
Right now, both APIs are independently developed.
Of course we aim to provide the same functionality (in a similar way if
possible) with both APIs but we do not have a formal process to achieve
this.
The core set of functionality is covered by some example programs which are
implemented for both APIs.
I think this will become a more important issue in the future, esp. if we
add more APIs (Python is on the way).
Are there any best practices to maintain API consistency?
Fabian
2014-06-26 8:05 GMT+02:00 Henry Saputra <he...@gmail.com>:
> Hi All,
>
> How does Flink maintain the Scala and Java consistencies and check
> whether new API in Java also expose or implemented in Scala?
>
> Thanks,
>
> Henry
>