[ https://issues.apache.org/jira/browse/METAMODEL-61?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14998388#comment-14998388 ]
Kasper Sørensen commented on METAMODEL-61: ------------------------------------------ I prefer you to not subclass but rather compose. Inheritance is anyways only for situations where something _is a_ instance of the thing it inherits from. Here I don't think it's the case. Rather it's a _has a_ (or rather _has many_) relationship so composition is a better choice. > DataContext based on a directory of (CSV) files > ----------------------------------------------- > > Key: METAMODEL-61 > URL: https://issues.apache.org/jira/browse/METAMODEL-61 > Project: Apache MetaModel > Issue Type: New Feature > Reporter: Kasper Sørensen > Assignee: Ashwin Rayaprolu > > Right now the CsvDataContext supports reading just a single file and having > that as a single table. It would be wonderful if you could also instantiate > CsvDataContext (or some other class) with a folder instead of a file, and > then have every csv file in the folder show up as a table in the schema. That > would allow CsvDataContext (or whatever it will be) to be used as a > functional replacement for almost any other UpdateableDataContext, e.g. for > testing etc. -- This message was sent by Atlassian JIRA (v6.3.4#6332)