[jira] [Created] (FLINK-1126) Add suggestion for using large TupleX types

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

[jira] [Created] (FLINK-1126) Add suggestion for using large TupleX types

Shang Yuanchun (Jira)
Ufuk Celebi created FLINK-1126:
----------------------------------

             Summary: Add suggestion for using large TupleX types
                 Key: FLINK-1126
                 URL: https://issues.apache.org/jira/browse/FLINK-1126
             Project: Flink
          Issue Type: Improvement
          Components: Documentation
            Reporter: Ufuk Celebi
            Priority: Minor


Instead of
{code}
Tuple11<String, String, ..., String> var = new ...;
{code}
I would like to add a hint to use custom types like:
{code}
CustomType var = new ...;

public static class CustomType extends Tuple11<String, String, ..., String> {
    // constructor matching super
}
{code}

I saw a couple of users sticking to the large TupleX types instead of doing this, which leads to a very clumsy user code.



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