Re: refactor StreamConfig

2017-07-06 Thread Aljoscha Krettek
Hi, Yes, the fact that the operator can see isChainStart() and isChainEnd() is not good, in my opinion. These seems to be an implementation detail that an operator should not be aware of. For now it’s ok but maybe we can fix that later. Regarding output edges and serialisers, I think it might

Re: refactor StreamConfig

2017-07-04 Thread Xu Pingyong
Hi Aljoscha: Ye, I agree with you that an operator should not see output edges and serialisers. The call getChainIndex() is used only in OperatorConfig.toString(), it can be removed. However, isChainStart() and isChainEnd() is used in AbstractStreamOperator.setup(...). But I think what Steph

Re: refactor StreamConfig

2017-07-04 Thread Aljoscha Krettek
Hi, Yes, but I think what Stephan was hinting at was to change both of them to be serialisable when already working on this. I think input serialiser is fine to have in OperatorConfig, you’re right! I don’t see getChainIndex() used anywhere in the code, though. And the output edges and seriali

Re: refactor StreamConfig (Appending a picture)

2017-07-04 Thread Ted Yu
The picture didn't go thru. Please use third party site. On Tue, Jul 4, 2017 at 7:09 AM, xu wrote: > I All: > I am sorry about working with StreamConfig(https://github. > com/apache/flink/pull/4241) which may conflicts with others' work before > discussing. > > Motivation: >

Re: refactor StreamConfig

2017-07-04 Thread Aljoscha Krettek
I think the proposed changed are good, I just wanted to make sure that they don’t interfere with what other people are doing. I also proposed these steps on the Github PR: Also, for actually doing the changes I suggest separate steps, i.e. separate commits. With possibly separate PRs to make rev