本文整理了Java中org.apache.calcite.linq4j.Enumerable.concat()
方法的一些代码示例,展示了Enumerable.concat()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Enumerable.concat()
方法的具体详情如下:
包路径:org.apache.calcite.linq4j.Enumerable
类名称:Enumerable
方法名:concat
暂无
代码示例来源:origin: Qihoo360/Quicksql
Enumerable<MetaTable> tables(final MetaSchema schema_) {
final CalciteMetaSchema schema = (CalciteMetaSchema) schema_;
return Linq4j.asEnumerable(schema.calciteSchema.getTableNames())
.select((Function1<String, MetaTable>) name -> {
final Table table =
schema.calciteSchema.getTable(name, true).getTable();
return new CalciteMetaTable(table,
schema.tableCatalog,
schema.tableSchem,
name);
})
.concat(
Linq4j.asEnumerable(
schema.calciteSchema.getTablesBasedOnNullaryFunctions()
.entrySet())
.select(pair -> {
final Table table = pair.getValue();
return new CalciteMetaTable(table,
schema.tableCatalog,
schema.tableSchem,
pair.getKey());
}));
}
代码示例来源:origin: org.apache.calcite/calcite-core
Enumerable<MetaTable> tables(final MetaSchema schema_) {
final CalciteMetaSchema schema = (CalciteMetaSchema) schema_;
return Linq4j.asEnumerable(schema.calciteSchema.getTableNames())
.select((Function1<String, MetaTable>) name -> {
final Table table =
schema.calciteSchema.getTable(name, true).getTable();
return new CalciteMetaTable(table,
schema.tableCatalog,
schema.tableSchem,
name);
})
.concat(
Linq4j.asEnumerable(
schema.calciteSchema.getTablesBasedOnNullaryFunctions()
.entrySet())
.select(pair -> {
final Table table = pair.getValue();
return new CalciteMetaTable(table,
schema.tableCatalog,
schema.tableSchem,
pair.getKey());
}));
}
代码示例来源:origin: qubole/quark
Enumerable<MetaTable> tables(final MetaSchema schema_) {
final QuarkMetaSchema schema = (QuarkMetaSchema) schema_;
return Linq4j.asEnumerable(schema.calciteSchema.getTableNames())
.select(
new Function1<String, MetaTable>() {
public MetaTable apply(String name) {
final Table table =
schema.calciteSchema.getTable(name, true).getTable();
return new QuarkMetaTable(table,
schema.tableCatalog,
schema.tableSchem,
name);
}
})
.concat(
Linq4j.asEnumerable(
schema.calciteSchema.getTablesBasedOnNullaryFunctions()
.entrySet())
.select(
new Function1<Map.Entry<String, Table>, MetaTable>() {
public MetaTable apply(Map.Entry<String, Table> pair) {
final Table table = pair.getValue();
return new QuarkMetaTable(table,
schema.tableCatalog,
schema.tableSchem,
pair.getKey());
}
}));
}
内容来源于网络,如有侵权,请联系作者删除!