flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jark Wu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-5385) Add a help function to create Row
Date Thu, 22 Dec 2016 06:10:58 GMT
Jark Wu created FLINK-5385:

             Summary: Add a help function to create Row
                 Key: FLINK-5385
                 URL: https://issues.apache.org/jira/browse/FLINK-5385
             Project: Flink
          Issue Type: Improvement
          Components: Core
            Reporter: Jark Wu
            Assignee: Jark Wu

Currently, it is trivial to create a Row, for example:

Row row = new Row(3);
row.setField(0, "hello");
row.setField(1, true);
row.setField(2, 1L);

It would be nice to have a help method {{of}} to create a Row, such as:

Row row = Row.of("hello", true, 1L);

This message was sent by Atlassian JIRA

View raw message