当前位置: 首页>>代码示例>>Java>>正文


Java RelOptTable类代码示例

本文整理汇总了Java中org.eigenbase.relopt.RelOptTable的典型用法代码示例。如果您正苦于以下问题:Java RelOptTable类的具体用法?Java RelOptTable怎么用?Java RelOptTable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


RelOptTable类属于org.eigenbase.relopt包,在下文中一共展示了RelOptTable类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: toRel

import org.eigenbase.relopt.RelOptTable; //导入依赖的package包/类
public RelNode toRel(
        RelOptTable.ToRelContext context,
        RelOptTable relOptTable) {
    return new JavaRules.EnumerableTableAccessRel(
            context.getCluster(),
            context.getCluster().traitSetOf(EnumerableConvention.INSTANCE),
            relOptTable,
            getElementType());
}
 
开发者ID:OSBI,项目名称:optiq-solr,代码行数:10,代码来源:SolrTable.java

示例2: toRel

import org.eigenbase.relopt.RelOptTable; //导入依赖的package包/类
public RelNode toRel(
    RelOptTable.ToRelContext context,
    RelOptTable relOptTable) {
  return new JavaRules.EnumerableTableAccessRel(
      context.getCluster(),
      context.getCluster().traitSetOf(EnumerableConvention.INSTANCE),
      relOptTable,
      (Class) getElementType());
}
 
开发者ID:apache,项目名称:incubator-optiq-csv,代码行数:10,代码来源:JsonTable.java

示例3: toRel

import org.eigenbase.relopt.RelOptTable; //导入依赖的package包/类
public RelNode toRel(
    RelOptTable.ToRelContext context,
    RelOptTable relOptTable) {
  // Request all fields.
  final int fieldCount = relOptTable.getRowType().getFieldCount();
  final int[] fields = CsvEnumerator.identityList(fieldCount);
  return new CsvTableScan(context.getCluster(), relOptTable, this, fields);
}
 
开发者ID:apache,项目名称:incubator-optiq-csv,代码行数:9,代码来源:CsvSmartTable.java

示例4: implement

import org.eigenbase.relopt.RelOptTable; //导入依赖的package包/类
@Override
public Result implement(EnumerableRelImplementor implementor, Prefer pref) {
    Result result = null;
    if (this.hasSubQuery) {
        result = super.implement(implementor, pref);
    } else {
        PhysType physType = PhysTypeImpl.of(implementor.getTypeFactory(), getRowType(), pref.preferArray());

        RelOptTable factTable = context.firstTableScan.getTable();
        result = implementor.result(physType, Blocks.toBlock(Expressions.call(factTable.getExpression(OLAPTable.class), "executeIndexQuery", implementor.getRootExpression(), Expressions.constant(context.id))));
    }

    return result;
}
 
开发者ID:KylinOLAP,项目名称:Kylin,代码行数:15,代码来源:OLAPJoinRel.java

示例5: OLAPTableScan

import org.eigenbase.relopt.RelOptTable; //导入依赖的package包/类
public OLAPTableScan(RelOptCluster cluster, RelOptTable table, OLAPTable olapTable, int[] fields) {
    super(cluster, cluster.traitSetOf(OLAPRel.CONVENTION), table);
    this.olapTable = olapTable;
    this.fields = fields;
    this.tableName = olapTable.getTableName();
    this.rowType = getRowType();
}
 
开发者ID:KylinOLAP,项目名称:Kylin,代码行数:8,代码来源:OLAPTableScan.java

示例6: toRel

import org.eigenbase.relopt.RelOptTable; //导入依赖的package包/类
@Override
public RelNode toRel(ToRelContext context, RelOptTable relOptTable) {

	return new TableScanner(context.getCluster(), context.getCluster()
			.traitSetOf(CosmosRelNode.CONVENTION), relOptTable, this,
			relOptTable.getRowType().getFieldNames());
}
 
开发者ID:joshelser,项目名称:cosmos,代码行数:8,代码来源:DataTable.java

示例7: toRel

import org.eigenbase.relopt.RelOptTable; //导入依赖的package包/类
public RelNode toRel(RelOptTable.ToRelContext context, RelOptTable relOptTable) {
    return new JavaRules.EnumerableTableAccessRel(context.getCluster(),
        context.getCluster().traitSetOf(EnumerableConvention.INSTANCE),
        relOptTable, (Class) getElementType());
}
 
开发者ID:HenryOlson,项目名称:optiq-web,代码行数:6,代码来源:WebTable.java

示例8: toRel

import org.eigenbase.relopt.RelOptTable; //导入依赖的package包/类
@Override
public RelNode toRel(ToRelContext context, RelOptTable relOptTable) {
    int fieldCount = relOptTable.getRowType().getFieldCount();
    int[] fields = identityList(fieldCount);
    return new OLAPTableScan(context.getCluster(), relOptTable, this, fields);
}
 
开发者ID:KylinOLAP,项目名称:Kylin,代码行数:7,代码来源:OLAPTable.java

示例9: StratosphereDataSource

import org.eigenbase.relopt.RelOptTable; //导入依赖的package包/类
public StratosphereDataSource(RelOptCluster cluster,RelOptTable table, Operator op) {
	super(cluster,cluster.traitSetOf(StratosphereRel.CONVENTION), table);
	Preconditions.checkArgument(getConvention() == CONVENTION);
	Preconditions.checkNotNull(op);
	this.op = op;
}
 
开发者ID:rmetzger,项目名称:stratosphere-sql,代码行数:7,代码来源:StratosphereDataSource.java

示例10: toRel

import org.eigenbase.relopt.RelOptTable; //导入依赖的package包/类
@Override
public RelNode toRel(ToRelContext context, RelOptTable relOptTable) {
	return new StratosphereDataSource(context.getCluster(), relOptTable, fileSrcOperator);
}
 
开发者ID:rmetzger,项目名称:stratosphere-sql,代码行数:5,代码来源:CSVStratosphereTable.java

示例11: TableScanner

import org.eigenbase.relopt.RelOptTable; //导入依赖的package包/类
public TableScanner(RelOptCluster cluster, RelTraitSet traitSet, RelOptTable table, DataTable<?> resultTable, List<String> fieldList) {
  super(cluster, traitSet, table);

  this.resultTable = resultTable;
  this.fieldList = fieldList;
}
 
开发者ID:joshelser,项目名称:cosmos,代码行数:7,代码来源:TableScanner.java


注:本文中的org.eigenbase.relopt.RelOptTable类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。