Apache Flink Examples

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Apache Flink Examples

Dhruv Kumar
Hi

I have been exploring Apache Flink for sometime now and I notice that although the documentation has good amount of information, there may not be sufficient examples (code snippets) which quickly explain what a particular feature will do. A good example which comes to my mind is Plotly. Plotly has a large number of examples for each of the their features which helps the user quickly implement those features for his or her own use. I wanted to know if anyone has similar thoughts on this. 

I am happy to contribute if I can get some guidance/direction.

I may be absolutely wrong. Please correct me if I am.

Thanks.
--------------------------------------------------
Dhruv Kumar
PhD Candidate
Department of Computer Science and Engineering
University of Minnesota
www.dhruvkumar.me

Reply | Threaded
Open this post in threaded view
|

Re: Apache Flink Examples

Hung
in my case I usually check the tests they write for each function I want to
use.

Take CountTrigger as an example, if I want to customize my own way of
counting, I will have a look at
the test the write

https://github.com/apache/flink/blob/8dfb9d00653271ea4adbeb752da8f62d7647b6d8/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/operators/windowing/CountTriggerTest.java

Then I understand how this function is expected to work, and then I write my
own test with my expected  result.

Test is the best documentation I would say.

Also there is an example folder in github.
https://github.com/apache/flink/tree/master/flink-examples

Best,

Sendoh



--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Apache Flink Examples

Dhruv Kumar
Thanks. Tests and the example folder will help.

--------------------------------------------------
Dhruv Kumar
PhD Candidate
Department of Computer Science and Engineering
University of Minnesota
www.dhruvkumar.me

On Apr 27, 2018, at 06:47, Hung <[hidden email]> wrote:

in my case I usually check the tests they write for each function I want to
use.

Take CountTrigger as an example, if I want to customize my own way of
counting, I will have a look at
the test the write

https://github.com/apache/flink/blob/8dfb9d00653271ea4adbeb752da8f62d7647b6d8/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/operators/windowing/CountTriggerTest.java

Then I understand how this function is expected to work, and then I write my
own test with my expected  result.

Test is the best documentation I would say.

Also there is an example folder in github.
https://github.com/apache/flink/tree/master/flink-examples

Best,

Sendoh



--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/