Github user kaspersorensen commented on a diff in the pull request:
https://github.com/apache/metamodel/pull/182#discussion_r195404505
--- Diff:
hbase/src/main/java/org/apache/metamodel/hbase/HBaseDataContext.java ---
@@ -242,17 +240,18 @@ protected DataSet materializeMainSchemaTable(Table
table, List<Column> columns,
}
private void setMaxRows(Scan scan, int maxRows) {
- try {
- // in old versions of the HBase API, the 'setMaxResultSize'
method
- // is not available
- Method method = scan.getClass().getMethod("setMaxResultSize",
long.class);
- method.invoke(scan, (long) maxRows);
--- End diff --
Oh, good to know :-) Then the change certainly makes sense.
---