本文整理汇总了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());
}
示例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());
}
示例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);
}
示例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;
}
示例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();
}
示例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());
}
示例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());
}
示例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);
}
示例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;
}
示例10: toRel
import org.eigenbase.relopt.RelOptTable; //导入依赖的package包/类
@Override
public RelNode toRel(ToRelContext context, RelOptTable relOptTable) {
return new StratosphereDataSource(context.getCluster(), relOptTable, fileSrcOperator);
}
示例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;
}