org.apache.calcite.adapter.enumerable.EnumerableTableScan Java Examples
The following examples show how to use
org.apache.calcite.adapter.enumerable.EnumerableTableScan.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PlannerTest.java From calcite with Apache License 2.0 | 5 votes |
public RelNode convert(RelNode rel) { final EnumerableTableScan scan = (EnumerableTableScan) rel; return new MockJdbcTableScan(scan.getCluster(), scan.getTable(), (JdbcConvention) getOutConvention()); }
Example #2
Source File: FileTable.java From calcite with Apache License 2.0 | 4 votes |
public RelNode toRel(RelOptTable.ToRelContext context, RelOptTable relOptTable) { return new EnumerableTableScan(context.getCluster(), context.getCluster().traitSetOf(EnumerableConvention.INSTANCE), relOptTable, (Class) getElementType()); }
Example #3
Source File: PlannerTest.java From calcite with Apache License 2.0 | 4 votes |
private MockJdbcTableRule(JdbcConvention out) { super(EnumerableTableScan.class, EnumerableConvention.INSTANCE, out, "MockJdbcTableRule"); }
Example #4
Source File: TableInRootSchemaTest.java From calcite with Apache License 2.0 | 4 votes |
public RelNode toRel(RelOptTable.ToRelContext context, RelOptTable relOptTable) { return EnumerableTableScan.create(context.getCluster(), relOptTable); }