flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From StephanEwen <...@git.apache.org>
Subject [GitHub] incubator-flink pull request: [FLINK-933] Add primitive input form...
Date Thu, 14 Aug 2014 18:53:06 GMT
Github user StephanEwen commented on the pull request:

    Instread of having a separate format to maintain, you could simply read a tuple-1 and
then unwrap the type. That way you would only need the function in DataSet
    public <X> DataSet<X> readBasicTypeFile(String filePath, Class<X> typeClass)
        return readCsv(filePath).types(typeClass).map(new Unwrapper());
    You would loose control over the data source though, because the returned type is the
map operator.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message