[jira] [Created] (FLINK-1104) Eliminate Tuple1 from flink-streaming-connectors

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-1104) Eliminate Tuple1 from flink-streaming-connectors

Shang Yuanchun (Jira)
Márton Balassi created FLINK-1104:
-------------------------------------

             Summary: Eliminate Tuple1 from flink-streaming-connectors
                 Key: FLINK-1104
                 URL: https://issues.apache.org/jira/browse/FLINK-1104
             Project: Flink
          Issue Type: Task
          Components: Streaming
            Reporter: Márton Balassi
            Priority: Minor


The streaming connectors contains unnecessary usage of Tuple1. E.g. in KafkaSource:

@Override
public Tuple1<String> deserialize(byte[] msg) {
        String s = new String(msg);
        if(s.equals("q")){
                closeWithoutSend();
        }
        return new Tuple1<String>(s);
}

Please adjust the underlying interfaces and update the documentation accordingly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)