[GitHub] metamodel issue #153: Collections instead of Arrays

2017-07-28 Thread kaspersorensen
Github user kaspersorensen commented on the issue: https://github.com/apache/metamodel/pull/153 Great. That makes sense. I expect to take a closer look at the diff sometime this weekend. --- If your project is set up for it, you can reply to this email and have your reply appear on G

[GitHub] metamodel issue #153: Collections instead of Arrays

2017-07-28 Thread tomatophantastico
Github user tomatophantastico commented on the issue: https://github.com/apache/metamodel/pull/153 IIRC, guava is only in the test cases, so i would just set the scope to test --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as wel

[GitHub] metamodel-membrane pull request #1: Initial codebase

2017-07-28 Thread kaspersorensen
Github user kaspersorensen commented on a diff in the pull request: https://github.com/apache/metamodel-membrane/pull/1#discussion_r130111763 --- Diff: core/src/main/java/org/apache/metamodel/membrane/controllers/ColumnController.java --- @@ -0,0 +1,86 @@ +/** + * Licensed

[GitHub] metamodel issue #153: Collections instead of Arrays

2017-07-28 Thread kaspersorensen
Github user kaspersorensen commented on the issue: https://github.com/apache/metamodel/pull/153 I also wanna applaude this big effort :-) But like @LosD I am a bit concerned with adding Guava to the core module because that means our API and really core classes essentially depends on

[GitHub] metamodel issue #153: Collections instead of Arrays

2017-07-28 Thread tomatophantastico
Github user tomatophantastico commented on the issue: https://github.com/apache/metamodel/pull/153 Sorry, this was more of the reasoning behind my bulk changes & the changes in the (im)mutable table class, the implementor should of course pick what fits the scenario best. --- If yo

[GitHub] metamodel issue #153: Collections instead of Arrays

2017-07-28 Thread LosD
Github user LosD commented on the issue: https://github.com/apache/metamodel/pull/153 I don't really agree on "ArrayLists should be used", especially for single-element lists, as a singletonList does not need a backing array, but it's not really a blocker for me. --- If your project

[GitHub] metamodel pull request #153: Collections instead of Arrays

2017-07-28 Thread LosD
Github user LosD commented on a diff in the pull request: https://github.com/apache/metamodel/pull/153#discussion_r130093372 --- Diff: core/src/main/java/org/apache/metamodel/CompositeDataContext.java --- @@ -190,9 +183,7 @@ public Schema getSchemaByNameInternal(String name) throw

[GitHub] metamodel pull request #153: Collections instead of Arrays

2017-07-28 Thread LosD
Github user LosD commented on a diff in the pull request: https://github.com/apache/metamodel/pull/153#discussion_r130092580 --- Diff: core/src/main/java/org/apache/metamodel/data/AbstractRowBuilder.java --- @@ -68,7 +71,7 @@ public AbstractRowBuilder(Column[] columns) {

[GitHub] metamodel pull request #153: Collections instead of Arrays

2017-07-28 Thread tomatophantastico
Github user tomatophantastico commented on a diff in the pull request: https://github.com/apache/metamodel/pull/153#discussion_r130083327 --- Diff: core/src/main/java/org/apache/metamodel/convert/Converters.java --- @@ -136,15 +135,19 @@ public static DataContext addTypeConverters

[GitHub] metamodel issue #153: Collections instead of Arrays

2017-07-28 Thread tomatophantastico
Github user tomatophantastico commented on the issue: https://github.com/apache/metamodel/pull/153 w.r.t. guavas Lists.newArrayList() I think i used it mainly in the testcases, purely for syntactic convenience. Internally ArrayLists should be used as it allows for more fre

[GitHub] metamodel pull request #153: Collections instead of Arrays

2017-07-28 Thread tomatophantastico
Github user tomatophantastico commented on a diff in the pull request: https://github.com/apache/metamodel/pull/153#discussion_r130074475 --- Diff: core/src/main/java/org/apache/metamodel/data/AbstractRowBuilder.java --- @@ -68,7 +71,7 @@ public AbstractRowBuilder(Column[] columns)

[GitHub] metamodel pull request #153: Collections instead of Arrays

2017-07-28 Thread tomatophantastico
Github user tomatophantastico commented on a diff in the pull request: https://github.com/apache/metamodel/pull/153#discussion_r130074087 --- Diff: core/src/main/java/org/apache/metamodel/DeleteAndInsertBuilder.java --- @@ -103,7 +103,10 @@ private Row update(final Row original) {

[GitHub] metamodel pull request #153: Collections instead of Arrays

2017-07-28 Thread tomatophantastico
Github user tomatophantastico commented on a diff in the pull request: https://github.com/apache/metamodel/pull/153#discussion_r130073934 --- Diff: core/src/main/java/org/apache/metamodel/CompositeDataContext.java --- @@ -190,9 +183,7 @@ public Schema getSchemaByNameInternal(String

[GitHub] metamodel pull request #153: Collections instead of Arrays

2017-07-28 Thread LosD
Github user LosD commented on a diff in the pull request: https://github.com/apache/metamodel/pull/153#discussion_r130068661 --- Diff: core/src/main/java/org/apache/metamodel/convert/Converters.java --- @@ -188,7 +191,7 @@ private static void autoDetectConvertersInternally(DataCon

[GitHub] metamodel pull request #153: Collections instead of Arrays

2017-07-28 Thread LosD
Github user LosD commented on a diff in the pull request: https://github.com/apache/metamodel/pull/153#discussion_r130069887 --- Diff: core/src/main/java/org/apache/metamodel/convert/Converters.java --- @@ -136,15 +135,19 @@ public static DataContext addTypeConverters(DataContext

[GitHub] metamodel pull request #153: Collections instead of Arrays

2017-07-28 Thread LosD
Github user LosD commented on a diff in the pull request: https://github.com/apache/metamodel/pull/153#discussion_r130067260 --- Diff: core/src/main/java/org/apache/metamodel/CompositeDataContext.java --- @@ -190,9 +183,7 @@ public Schema getSchemaByNameInternal(String name) throw

[GitHub] metamodel pull request #153: Collections instead of Arrays

2017-07-28 Thread LosD
Github user LosD commented on a diff in the pull request: https://github.com/apache/metamodel/pull/153#discussion_r130068074 --- Diff: core/src/main/java/org/apache/metamodel/DeleteAndInsertBuilder.java --- @@ -103,7 +103,10 @@ private Row update(final Row original) {

[GitHub] metamodel pull request #153: Collections instead of Arrays

2017-07-28 Thread LosD
Github user LosD commented on a diff in the pull request: https://github.com/apache/metamodel/pull/153#discussion_r130070891 --- Diff: core/src/main/java/org/apache/metamodel/data/AbstractRowBuilder.java --- @@ -68,7 +71,7 @@ public AbstractRowBuilder(Column[] columns) {

[GitHub] metamodel pull request #153: Collections instead of Arrays

2017-07-28 Thread tomatophantastico
GitHub user tomatophantastico opened a pull request: https://github.com/apache/metamodel/pull/153 Collections instead of Arrays This solves METAMODEL-7 This is a major API change, proceed with caution. Lists are used in cases where order is important (schemas, tabl

[GitHub] metamodel-membrane pull request #1: Initial codebase

2017-07-28 Thread tomatophantastico
Github user tomatophantastico commented on a diff in the pull request: https://github.com/apache/metamodel-membrane/pull/1#discussion_r130057536 --- Diff: core/src/main/java/org/apache/metamodel/membrane/controllers/ColumnController.java --- @@ -0,0 +1,86 @@ +/** + * Licen