flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timo Walther (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-5714) Use a builder pattern for creating CsvTableSource
Date Mon, 06 Feb 2017 08:57:41 GMT
Timo Walther created FLINK-5714:
-----------------------------------

             Summary: Use a builder pattern for creating CsvTableSource
                 Key: FLINK-5714
                 URL: https://issues.apache.org/jira/browse/FLINK-5714
             Project: Flink
          Issue Type: Improvement
          Components: Table API & SQL
            Reporter: Timo Walther


Right now, the constructor of the CsvTableSource can have up to 9 parameters. In Scala this
might not be a problem because of default values, but Java doesn't has this functionality.

I propose to have a a builder pattern here:

{code}
CsvTableSource
.builder()
.field("myfield", Types.STRING)
.field("myfield2", Types.INT)
.quoteCharacter(';')
.build()
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message