private static void operatorTable(String s, Collection<SqlOperatorTable> tables) { switch (s) { case "standard": tables.add(SqlStdOperatorTable.instance()); return; case "oracle": tables.add(OracleSqlOperatorTable.instance()); return; case "spatial": tables.add( CalciteCatalogReader.operatorTable(GeoFunctions.class.getName())); return; default: throw new IllegalArgumentException("Unknown operator table: " + s); } }
private static void operatorTable(String s, Collection<SqlOperatorTable> tables) { switch (s) { case "standard": tables.add(SqlStdOperatorTable.instance()); return; case "oracle": tables.add(OracleSqlOperatorTable.instance()); return; case "spatial": tables.add( CalciteCatalogReader.operatorTable(GeoFunctions.class.getName())); return; default: throw new IllegalArgumentException("Unknown operator table: " + s); } }