本文整理了Java中org.apache.calcite.linq4j.Enumerable.selectMany()
方法的一些代码示例,展示了Enumerable.selectMany()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Enumerable.selectMany()
方法的具体详情如下:
包路径:org.apache.calcite.linq4j.Enumerable
类名称:Enumerable
方法名:selectMany
暂无
代码示例来源:origin: Qihoo360/Quicksql
Enumerable<MetaTable> tables(String catalog) {
return schemas(catalog)
.selectMany(schema ->
tables(schema, Functions.<String>truePredicate1()));
}
代码示例来源:origin: org.apache.calcite/calcite-core
Enumerable<MetaTable> tables(String catalog) {
return schemas(catalog)
.selectMany(schema ->
tables(schema, Functions.<String>truePredicate1()));
}
代码示例来源:origin: Qihoo360/Quicksql
return createResultSet(schemas(catalog)
.where(schemaMatcher)
.selectMany(schema -> tables(schema, tableNameMatcher))
.selectMany(this::columns)
.where(columnMatcher),
MetaColumn.class,
代码示例来源:origin: org.apache.calcite/calcite-core
return createResultSet(schemas(catalog)
.where(schemaMatcher)
.selectMany(schema -> tables(schema, tableNameMatcher))
.selectMany(this::columns)
.where(columnMatcher),
MetaColumn.class,
代码示例来源:origin: qubole/quark
return createResultSet(schemas(catalog)
.where(schemaMatcher)
.selectMany(
new Function1<MetaSchema, Enumerable<MetaTable>>() {
public Enumerable<MetaTable> apply(MetaSchema schema) {
.selectMany(
new Function1<MetaTable, Enumerable<MetaColumn>>() {
public Enumerable<MetaColumn> apply(MetaTable schema) {
代码示例来源:origin: org.apache.calcite/calcite-core
public MetaResultSet getTables(ConnectionHandle ch,
String catalog,
final Pat schemaPattern,
final Pat tableNamePattern,
final List<String> typeList) {
final Predicate1<MetaTable> typeFilter;
if (typeList == null) {
typeFilter = Functions.truePredicate1();
} else {
typeFilter = v1 -> typeList.contains(v1.tableType);
}
final Predicate1<MetaSchema> schemaMatcher = namedMatcher(schemaPattern);
return createResultSet(schemas(catalog)
.where(schemaMatcher)
.selectMany(schema -> tables(schema, matcher(tableNamePattern)))
.where(typeFilter),
MetaTable.class,
"TABLE_CAT",
"TABLE_SCHEM",
"TABLE_NAME",
"TABLE_TYPE",
"REMARKS",
"TYPE_CAT",
"TYPE_SCHEM",
"TYPE_NAME",
"SELF_REFERENCING_COL_NAME",
"REF_GENERATION");
}
代码示例来源:origin: Qihoo360/Quicksql
public MetaResultSet getTables(ConnectionHandle ch,
String catalog,
final Pat schemaPattern,
final Pat tableNamePattern,
final List<String> typeList) {
final Predicate1<MetaTable> typeFilter;
if (typeList == null) {
typeFilter = Functions.truePredicate1();
} else {
typeFilter = v1 -> typeList.contains(v1.tableType);
}
final Predicate1<MetaSchema> schemaMatcher = namedMatcher(schemaPattern);
return createResultSet(schemas(catalog)
.where(schemaMatcher)
.selectMany(schema -> tables(schema, matcher(tableNamePattern)))
.where(typeFilter),
MetaTable.class,
"TABLE_CAT",
"TABLE_SCHEM",
"TABLE_NAME",
"TABLE_TYPE",
"REMARKS",
"TYPE_CAT",
"TYPE_SCHEM",
"TYPE_NAME",
"SELF_REFERENCING_COL_NAME",
"REF_GENERATION");
}
代码示例来源:origin: qubole/quark
return createResultSet(schemas(catalog)
.where(schemaMatcher)
.selectMany(
new Function1<MetaSchema, Enumerable<MetaTable>>() {
public Enumerable<MetaTable> apply(MetaSchema schema) {
代码示例来源:origin: qubole/quark
.selectMany(
new Function1<MetaSchema, Enumerable<MetaSchema>>() {
@Override
内容来源于网络,如有侵权,请联系作者删除!