Github user StephanEwen commented on the pull request:

    https://github.com/apache/incubator-flink/pull/47#issuecomment-52226058
  
    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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to