flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gyula Fora (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-87) Extend collectors to specify target sink
Date Sun, 03 Aug 2014 18:54:11 GMT

    [ https://issues.apache.org/jira/browse/FLINK-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14084085#comment-14084085
] 

Gyula Fora commented on FLINK-87:
---------------------------------

I actually liked what you proposed very much Stephan, in fact I already implemented this for
streaming, you can check it out here:

https://github.com/mbalassi/incubator-flink/blob/a02888954ba5efa00a1714dc34de17085927091a/flink-addons/flink-streaming/flink-streaming-core/src/test/java/org/apache/flink/streaming/api/collector/DirectedOutputTest.java#L99

> Extend collectors to specify target sink
> ----------------------------------------
>
>                 Key: FLINK-87
>                 URL: https://issues.apache.org/jira/browse/FLINK-87
>             Project: Flink
>          Issue Type: Improvement
>          Components: Java API
>            Reporter: Robert Metzger
>              Labels: github-import
>             Fix For: pre-apache
>
>
> This is an enhancement proposal for Stratosphere.
> It is possible to have multiple outputs for a given PACT, like the figure below illustrates:
>              (SRC)
>                |
>              REDUCE
>             /  |  \
>      +-----+   |   +-------+
>      |         |           |
>     (SINK A)   |        (SINK C)
>             (SINK B)
> All records are going to all sinks.
> It would be preferable sometimes to select a sink for a record .. For example each group
into a separate file (yes, I know, one could add a filter before each sink)
> We could add another collect() method like this
>     public void collect(int sinkId, PactRecord record)
> The current collect() is quite simple:
>     public void collect(PactRecord record)
>     {
>         for (int i = 0; i < writers.length; i++) {
>             this.writers[i].emit(record);	
>         }
>     }
> ---------------- Imported from GitHub ----------------
> Url: https://github.com/stratosphere/stratosphere/issues/87
> Created by: [rmetzger|https://github.com/rmetzger]
> Labels: enhancement, 
> Assignee: [rmetzger|https://github.com/rmetzger]
> Created at: Wed Sep 11 17:49:47 CEST 2013
> State: open



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message