Java Code Examples for org.apache.calcite.plan.RelOptCluster#traitSetOf()
The following examples show how to use
org.apache.calcite.plan.RelOptCluster#traitSetOf() .
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: VolcanoPlannerTest.java From calcite with Apache License 2.0 | 5 votes |
PhysToIteratorConverter( RelOptCluster cluster, RelNode child) { super( cluster, ConventionTraitDef.INSTANCE, cluster.traitSetOf(EnumerableConvention.INSTANCE), child); }
Example 2
Source File: OLAPTableScan.java From kylin-on-parquet-v2 with Apache License 2.0 | 5 votes |
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(); this.kylinConfig = KylinConfig.getInstanceFromEnv(); }
Example 3
Source File: LogicalTableFunctionScan.java From calcite with Apache License 2.0 | 5 votes |
/** Creates a LogicalTableFunctionScan. */ public static LogicalTableFunctionScan create( RelOptCluster cluster, List<RelNode> inputs, RexNode rexCall, Type elementType, RelDataType rowType, Set<RelColumnMapping> columnMappings) { final RelTraitSet traitSet = cluster.traitSetOf(Convention.NONE); return new LogicalTableFunctionScan(cluster, traitSet, inputs, rexCall, elementType, rowType, columnMappings); }
Example 4
Source File: LogicalJoin.java From Bats with Apache License 2.0 | 5 votes |
/** Creates a LogicalJoin, flagged with whether it has been translated to a * semi-join. */ public static LogicalJoin create(RelNode left, RelNode right, RexNode condition, Set<CorrelationId> variablesSet, JoinRelType joinType, boolean semiJoinDone, ImmutableList<RelDataTypeField> systemFieldList) { final RelOptCluster cluster = left.getCluster(); final RelTraitSet traitSet = cluster.traitSetOf(Convention.NONE); return new LogicalJoin(cluster, traitSet, left, right, condition, variablesSet, joinType, semiJoinDone, systemFieldList); }
Example 5
Source File: DremioRelFactories.java From dremio-oss with Apache License 2.0 | 5 votes |
public RelNode createSetOp(SqlKind kind, List<RelNode> inputs, boolean all) { final RelOptCluster cluster = inputs.get(0).getCluster(); final RelTraitSet traitSet = cluster.traitSetOf(Rel.LOGICAL); switch(kind) { case UNION: try { return new UnionRel(cluster, traitSet, inputs, all, true); } catch (InvalidRelException e) { throw new AssertionError(e); } default: throw new AssertionError("Dremio doesn't currently support " + kind + " operations."); } }
Example 6
Source File: LogicalJoin.java From Bats with Apache License 2.0 | 5 votes |
@Deprecated // to be removed before 2.0 public LogicalJoin(RelOptCluster cluster, RelNode left, RelNode right, RexNode condition, JoinRelType joinType, Set<String> variablesStopped) { this(cluster, cluster.traitSetOf(Convention.NONE), left, right, condition, CorrelationId.setOf(variablesStopped), joinType, false, ImmutableList.of()); }
Example 7
Source File: NoneConverter.java From Bats with Apache License 2.0 | 5 votes |
public NoneConverter( RelOptCluster cluster, RelNode child) { super( cluster, ConventionTraitDef.INSTANCE, cluster.traitSetOf(Convention.NONE), child); }
Example 8
Source File: LogicalAggregate.java From calcite with Apache License 2.0 | 5 votes |
private static LogicalAggregate create_(final RelNode input, List<RelHint> hints, ImmutableBitSet groupSet, List<ImmutableBitSet> groupSets, List<AggregateCall> aggCalls) { final RelOptCluster cluster = input.getCluster(); final RelTraitSet traitSet = cluster.traitSetOf(Convention.NONE); return new LogicalAggregate(cluster, traitSet, hints, input, groupSet, groupSets, aggCalls); }
Example 9
Source File: LogicalJoin.java From calcite with Apache License 2.0 | 5 votes |
/** Creates a LogicalJoin, flagged with whether it has been translated to a * semi-join. */ public static LogicalJoin create(RelNode left, RelNode right, List<RelHint> hints, RexNode condition, Set<CorrelationId> variablesSet, JoinRelType joinType, boolean semiJoinDone, ImmutableList<RelDataTypeField> systemFieldList) { final RelOptCluster cluster = left.getCluster(); final RelTraitSet traitSet = cluster.traitSetOf(Convention.NONE); return new LogicalJoin(cluster, traitSet, hints, left, right, condition, variablesSet, joinType, semiJoinDone, systemFieldList); }
Example 10
Source File: LogicalTableFunctionScan.java From calcite with Apache License 2.0 | 5 votes |
@Deprecated // to be removed before 2.0 public LogicalTableFunctionScan( RelOptCluster cluster, List<RelNode> inputs, RexNode rexCall, Type elementType, RelDataType rowType, Set<RelColumnMapping> columnMappings) { this(cluster, cluster.traitSetOf(Convention.NONE), inputs, rexCall, elementType, rowType, columnMappings); }
Example 11
Source File: LogicalAggregate.java From Bats with Apache License 2.0 | 5 votes |
@Deprecated // to be removed before 2.0 public LogicalAggregate( RelOptCluster cluster, RelNode child, boolean indicator, ImmutableBitSet groupSet, List<ImmutableBitSet> groupSets, List<AggregateCall> aggCalls) { this(cluster, cluster.traitSetOf(Convention.NONE), child, indicator, groupSet, groupSets, aggCalls); }
Example 12
Source File: ProcessGroupStatusTableScan.java From nifi with Apache License 2.0 | 4 votes |
protected ProcessGroupStatusTableScan(final RelOptCluster cluster, final RelOptTable table, final ProcessGroupStatusTable processGroupStatusTable, final int[] fields) { super(cluster, cluster.traitSetOf(EnumerableConvention.INSTANCE), table); this.processGroupStatusTable = processGroupStatusTable; this.fields = fields; }
Example 13
Source File: ComboRuleTest.java From calcite with Apache License 2.0 | 4 votes |
IntermediateNode(RelOptCluster cluster, RelNode input, int nodesBelowCount) { super(cluster, cluster.traitSetOf(PHYS_CALLING_CONVENTION), input); this.nodesBelowCount = nodesBelowCount; }
Example 14
Source File: PlannerTests.java From calcite with Apache License 2.0 | 4 votes |
PhysSingleRel(RelOptCluster cluster, RelNode input) { super(cluster, cluster.traitSetOf(PHYS_CALLING_CONVENTION), input); }
Example 15
Source File: ConnectionStatusPredictionsTableScan.java From nifi with Apache License 2.0 | 4 votes |
protected ConnectionStatusPredictionsTableScan(final RelOptCluster cluster, final RelOptTable table, final ConnectionStatusPredictionsTable connectionStatusPredictionsTable, final int[] fields) { super(cluster, cluster.traitSetOf(EnumerableConvention.INSTANCE), table); this.connectionStatusPredictionsTable = connectionStatusPredictionsTable; this.fields = fields; }
Example 16
Source File: ElasticsearchTable.java From dk-fitting with Apache License 2.0 | 4 votes |
public RelNode toRel(RelOptTable.ToRelContext context, RelOptTable relOptTable) { RelOptCluster cluster = context.getCluster(); return new ElasticsearchTableScan(cluster, cluster.traitSetOf(ElasticsearchRelNode.CONVENTION), relOptTable, this, null); }
Example 17
Source File: EnumerableBindable.java From calcite with Apache License 2.0 | 4 votes |
protected EnumerableBindable(RelOptCluster cluster, RelNode input) { super(cluster, ConventionTraitDef.INSTANCE, cluster.traitSetOf(BindableConvention.INSTANCE), input); }
Example 18
Source File: PlannerTests.java From calcite with Apache License 2.0 | 4 votes |
PhysLeafRel(RelOptCluster cluster, Convention convention, String label) { super(cluster, cluster.traitSetOf(convention), label); this.convention = convention; }
Example 19
Source File: VolcanoPlannerTraitTest.java From calcite with Apache License 2.0 | 4 votes |
IterSingleRel(RelOptCluster cluster, RelNode child) { super( cluster, cluster.traitSetOf(EnumerableConvention.INSTANCE), child); }
Example 20
Source File: LogicalIntersect.java From calcite with Apache License 2.0 | 4 votes |
/** Creates a LogicalIntersect. */ public static LogicalIntersect create(List<RelNode> inputs, boolean all) { final RelOptCluster cluster = inputs.get(0).getCluster(); final RelTraitSet traitSet = cluster.traitSetOf(Convention.NONE); return new LogicalIntersect(cluster, traitSet, inputs, all); }