Uses of Class
org.apache.calcite.tools.RelBuilder
Packages that use RelBuilder
Package
Description
-
Uses of RelBuilder in org.apache.calcite.sql2rel
Fields in org.apache.calcite.sql2rel declared as RelBuilderMethods in org.apache.calcite.sql2rel with parameters of type RelBuilderModifier and TypeMethodDescriptionstatic org.apache.calcite.rel.RelNodeRelDecorrelator.decorrelateQuery(org.apache.calcite.rel.RelNode rootRel, RelBuilder relBuilder) Decorrelates a query.Constructors in org.apache.calcite.sql2rel with parameters of type RelBuilderModifierConstructorDescriptionprotectedRelDecorrelator(RelDecorrelator.CorelMap cm, org.apache.calcite.plan.Context context, RelBuilder relBuilder) -
Uses of RelBuilder in org.apache.calcite.tools
Methods in org.apache.calcite.tools that return RelBuilderModifier and TypeMethodDescriptionRelBuilder.adoptConvention(org.apache.calcite.plan.Convention convention) Returns new RelBuilder that adopts the convention provided.RelBuilder.aggregate(RelBuilder.GroupKey groupKey, Iterable<RelBuilder.AggCall> aggCalls) Creates anAggregatewith multiple calls.RelBuilder.aggregate(RelBuilder.GroupKey groupKey, List<org.apache.calcite.rel.core.AggregateCall> aggregateCalls) Creates anAggregatewith an array ofAggregateCalls.RelBuilder.aggregate(RelBuilder.GroupKey groupKey, RelBuilder.AggCall... aggCalls) Creates anAggregatewith an array of calls.Creates an anti-join.RelBuilder.antiJoin(org.apache.calcite.rex.RexNode... conditions) Creates an anti-join.Assigns a table alias to the top entry on the stack.RelBuilder.convert(org.apache.calcite.rel.type.RelDataType castRowType, boolean rename) Creates a projection that converts the current relational expression's output to a desired row type.RelBuilder.correlate(org.apache.calcite.rel.core.JoinRelType joinType, org.apache.calcite.rel.core.CorrelationId correlationId, Iterable<? extends org.apache.calcite.rex.RexNode> requiredFields) Creates aCorrelatewith aCorrelationIdand a list of fields that are used by correlation.RelBuilder.correlate(org.apache.calcite.rel.core.JoinRelType joinType, org.apache.calcite.rel.core.CorrelationId correlationId, org.apache.calcite.rex.RexNode... requiredFields) Creates aCorrelatewith aCorrelationIdand an array of fields that are used by correlation.static RelBuilderRelBuilder.create(org.apache.calcite.tools.FrameworkConfig config) Creates a RelBuilder.RelBuilder.distinct()Creates anAggregatethat makes the relational expression distinct on all fields.RelBuilder.empty()Creates a relational expression that reads from an input and throws all of the rows away.RelBuilder.exchange(org.apache.calcite.rel.RelDistribution distribution) Creates an Exchange by distribution.Creates aFilterof a list of predicates.RelBuilder.filter(Iterable<org.apache.calcite.rel.core.CorrelationId> variablesSet, Iterable<? extends org.apache.calcite.rex.RexNode> predicates) Creates aFilterof a list of correlation variables and a list of predicates.RelBuilder.filter(Iterable<org.apache.calcite.rel.core.CorrelationId> variablesSet, org.apache.calcite.rex.RexNode... predicates) Creates aFilterof a list of correlation variables and an array of predicates.RelBuilder.filter(org.apache.calcite.rex.RexNode... predicates) Creates aFilterof an array of predicates.RelBuilder.functionScan(org.apache.calcite.sql.SqlOperator operator, int inputCount, Iterable<? extends org.apache.calcite.rex.RexNode> operands) Creates aTableFunctionScan.RelBuilder.functionScan(org.apache.calcite.sql.SqlOperator operator, int inputCount, org.apache.calcite.rex.RexNode... operands) Creates aTableFunctionScan.Attaches multiple hints to the stack top relational expression.RelBuilder.hints(org.apache.calcite.rel.hint.RelHint... hints) Attaches an array of hints to the stack top relational expression.RelBuilder.intersect(boolean all) Creates anIntersectof the two most recent relational expressions on the stack.RelBuilder.intersect(boolean all, int n) Creates anIntersectof thenmost recent relational expressions on the stack.RelBuilder.join(org.apache.calcite.rel.core.JoinRelType joinType, Iterable<? extends org.apache.calcite.rex.RexNode> conditions) Creates aJoinwith multiple conditions.Creates aJoinusing USING syntax.RelBuilder.join(org.apache.calcite.rel.core.JoinRelType joinType, org.apache.calcite.rex.RexNode condition) Creates aJoinwith one condition.RelBuilder.join(org.apache.calcite.rel.core.JoinRelType joinType, org.apache.calcite.rex.RexNode condition, Set<org.apache.calcite.rel.core.CorrelationId> variablesSet) Creates aJoinwith correlating variables.RelBuilder.join(org.apache.calcite.rel.core.JoinRelType joinType, org.apache.calcite.rex.RexNode condition0, org.apache.calcite.rex.RexNode... conditions) Creates aJoinwith an array of conditions.RelBuilder.limit(int offset, int fetch) Creates a limit without a sort.RelBuilder.match(org.apache.calcite.rex.RexNode pattern, boolean strictStart, boolean strictEnd, Map<String, org.apache.calcite.rex.RexNode> patternDefinitions, Iterable<? extends org.apache.calcite.rex.RexNode> measureList, org.apache.calcite.rex.RexNode after, Map<String, ? extends SortedSet<String>> subsets, boolean allRows, Iterable<? extends org.apache.calcite.rex.RexNode> partitionKeys, Iterable<? extends org.apache.calcite.rex.RexNode> orderKeys, org.apache.calcite.rex.RexNode interval) Creates aMatch.RelBuilder.minus(boolean all) Creates aMinusof the two most recent relational expressions on the stack.RelBuilder.minus(boolean all, int n) Creates aMinusof thenmost recent relational expressions on the stack.RelBuilder.permute(org.apache.calcite.util.mapping.Mapping mapping) RelBuilder.pivot(RelBuilder.GroupKey groupKey, Iterable<? extends RelBuilder.AggCall> aggCalls, Iterable<? extends org.apache.calcite.rex.RexNode> axes, Iterable<? extends Map.Entry<String, ? extends Iterable<? extends org.apache.calcite.rex.RexNode>>> values) Creates a Pivot.Creates aProjectof the given list of expressions.RelBuilder.project(Iterable<? extends org.apache.calcite.rex.RexNode> nodes, Iterable<? extends @Nullable String> fieldNames) Creates aProjectof the given list of expressions and field names.RelBuilder.project(Iterable<? extends org.apache.calcite.rex.RexNode> nodes, Iterable<? extends @Nullable String> fieldNames, boolean force) Creates aProjectof the given list of expressions, using the given names.RelBuilder.project(Iterable<? extends org.apache.calcite.rex.RexNode> nodes, Iterable<? extends @Nullable String> fieldNames, boolean force, Iterable<org.apache.calcite.rel.core.CorrelationId> variablesSet) The same withproject(Iterable, Iterable, boolean), with additional variablesSet param.RelBuilder.project(org.apache.calcite.rex.RexNode... nodes) Creates aProjectof the given expressions.RelBuilder.projectExcept(Iterable<org.apache.calcite.rex.RexNode> expressions) Creates aProjectof all original fields, except the given list of expressions.RelBuilder.projectExcept(org.apache.calcite.rex.RexNode... expressions) Creates aProjectof all original fields, except the given expressions.RelBuilder.projectNamed(Iterable<? extends org.apache.calcite.rex.RexNode> nodes, @Nullable Iterable<? extends @Nullable String> fieldNames, boolean force) Creates aProjectof the given expressions and field names, and optionally optimizing.RelBuilder.projectNamed(Iterable<? extends org.apache.calcite.rex.RexNode> nodes, @Nullable Iterable<? extends @Nullable String> fieldNames, boolean force, Iterable<org.apache.calcite.rel.core.CorrelationId> variablesSet) Creates aProjectof the given expressions and field names, and optionally optimizing.RelBuilder.projectPlus(Iterable<? extends org.apache.calcite.rex.RexNode> nodes) Creates aProjectof all original fields, plus the given list of expressions.RelBuilder.projectPlus(org.apache.calcite.rex.RexNode... nodes) Creates aProjectof all original fields, plus the given expressions.RelBuilder.push(org.apache.calcite.rel.RelNode node) Adds a relational expression to be the input to the next relational expression constructed.Pushes a collection of relational expressions.Ensures that the field names match those given.RelBuilder.repeatUnion(String tableName, boolean all) Creates aRepeatUnionassociated to aTransientTablewithout a maximum number of iterations, i.e. repeatUnion(tableName, all, -1).RelBuilder.repeatUnion(String tableName, boolean all, int iterationLimit) Creates aRepeatUnionassociated to aTransientTableof the two most recent relational expressions on the stack.Creates aTableScanof the table with a given name.Creates aTableScanof the table with a given name.Creates aJoinwithJoinRelType.SEMI.RelBuilder.semiJoin(org.apache.calcite.rex.RexNode... conditions) Creates aJoinwithJoinRelType.SEMI.RelBuilder.snapshot(org.apache.calcite.rex.RexNode period) Creates aSnapshotof a given snapshot period.RelBuilder.sort(int... fields) Creates aSortby field ordinals.Creates aSortby expressions.RelBuilder.sort(org.apache.calcite.rel.RelCollation collation) Creates aSortby specifying collations.RelBuilder.sort(org.apache.calcite.rex.RexNode... nodes) Creates aSortby expressions.RelBuilder.sortExchange(org.apache.calcite.rel.RelDistribution distribution, org.apache.calcite.rel.RelCollation collation) Creates a SortExchange by distribution and collation.RelBuilder.sortLimit(int offset, int fetch, Iterable<? extends org.apache.calcite.rex.RexNode> nodes) Creates aSortby a list of expressions, with limit and offset.RelBuilder.sortLimit(int offset, int fetch, org.apache.calcite.rex.RexNode... nodes) Creates aSortby expressions, with limit and offset.RelBuilder.sortLimit(@Nullable org.apache.calcite.rex.RexNode offsetNode, @Nullable org.apache.calcite.rex.RexNode fetchNode, Iterable<? extends org.apache.calcite.rex.RexNode> nodes) Creates aSortby a list of expressions, with limitNode and offsetNode.RelBuilder.transform(UnaryOperator<RelBuilder.Config> transform) Creates a copy of this RelBuilder, with the same state as this, applying a transform to the config.RelBuilder.transientScan(String tableName) Creates aTableScanon aTransientTablewith the given name, using as type the top of the stack's type.RelBuilder.transientScan(String tableName, org.apache.calcite.rel.type.RelDataType rowType) Creates aTableScanon aTransientTablewith the given name and type.Creates anUncollectwith given item aliases.RelBuilder.union(boolean all) Creates aUnionof the two most recent relational expressions on the stack.RelBuilder.union(boolean all, int n) Creates aUnionof thenmost recent relational expressions on the stack.RelBuilder.unpivot(boolean includeNulls, Iterable<String> measureNames, Iterable<String> axisNames, Iterable<? extends Map.Entry<? extends List<? extends org.apache.calcite.rex.RexLiteral>, ? extends List<? extends org.apache.calcite.rex.RexNode>>> axisMap) Creates an Unpivot.Creates aValues.RelBuilder.values(Iterable<? extends List<org.apache.calcite.rex.RexLiteral>> tupleList, org.apache.calcite.rel.type.RelDataType rowType) Creates aValueswith a specified row type.RelBuilder.values(org.apache.calcite.rel.type.RelDataType rowType) Creates aValueswith a specified row type and zero rows.Creates aValueswith a specified row type.RelBuilder.variable(org.apache.calcite.util.Holder<org.apache.calcite.rex.RexCorrelVariable> v) Creates a correlation variable for the current input, and writes it into a Holder.Method parameters in org.apache.calcite.tools with type arguments of type RelBuilderModifier and TypeMethodDescriptionorg.apache.calcite.rex.RexNodeRelBuilder.all(org.apache.calcite.rex.RexNode node, org.apache.calcite.sql.SqlOperator op, Function<RelBuilder, org.apache.calcite.rel.RelNode> f) Creates an ALL predicate.org.apache.calcite.rex.RexSubQueryRelBuilder.arrayQuery(Function<RelBuilder, org.apache.calcite.rel.RelNode> f) Creates an ARRAY sub-query.org.apache.calcite.rex.RexSubQueryRelBuilder.exists(Function<RelBuilder, org.apache.calcite.rel.RelNode> f) Creates an EXISTS predicate.org.apache.calcite.rex.RexNodeRelBuilder.in(org.apache.calcite.rex.RexNode arg, Function<RelBuilder, org.apache.calcite.rel.RelNode> f) Creates an IN predicate with a sub-query.<R> RRelBuilder.let(Function<RelBuilder, R> consumer) Performs an action on this RelBuilder.org.apache.calcite.rex.RexSubQueryRelBuilder.mapQuery(Function<RelBuilder, org.apache.calcite.rel.RelNode> f) Creates a MAP sub-query.org.apache.calcite.rex.RexSubQueryRelBuilder.multisetQuery(Function<RelBuilder, org.apache.calcite.rel.RelNode> f) Creates a MULTISET sub-query.org.apache.calcite.rex.RexSubQueryRelBuilder.scalarQuery(Function<RelBuilder, org.apache.calcite.rel.RelNode> f) Creates a scalar sub-query.org.apache.calcite.rex.RexSubQueryRelBuilder.some(org.apache.calcite.rex.RexNode node, org.apache.calcite.sql.SqlOperator op, Function<RelBuilder, org.apache.calcite.rel.RelNode> f) Creates a SOME (or ANY) predicate.org.apache.calcite.rex.RexSubQueryRelBuilder.unique(Function<RelBuilder, org.apache.calcite.rel.RelNode> f) Creates a UNIQUE predicate.<E> ERelBuilder.with(org.apache.calcite.rel.RelNode r, Function<RelBuilder, E> fn) Evaluates an expression with a relational expression temporarily on the stack.<E> ERelBuilder.withPredicates(org.apache.calcite.rel.metadata.RelMetadataQuery mq, Function<RelBuilder, E> fn) Performs an action using predicates of thecurrent nodeto simplify.<E> ERelBuilder.withSimplifier(BiFunction<RelBuilder, org.apache.calcite.rex.RexSimplify, org.apache.calcite.rex.RexSimplify> simplifierTransform, Function<RelBuilder, E> fn) Performs an action with a temporary simplifier.<E> ERelBuilder.withSimplifier(BiFunction<RelBuilder, org.apache.calcite.rex.RexSimplify, org.apache.calcite.rex.RexSimplify> simplifierTransform, Function<RelBuilder, E> fn) Performs an action with a temporary simplifier. -
Uses of RelBuilder in org.apache.flink.table.planner.calcite
Subclasses of RelBuilder in org.apache.flink.table.planner.calciteMethods in org.apache.flink.table.planner.calcite that return RelBuilderModifier and TypeMethodDescriptionFlinkRelBuilder.aggregate(RelBuilder.GroupKey groupKey, Iterable<RelBuilder.AggCall> aggCalls) Build non-window aggregate for either aggregate or table aggregate.static RelBuilderFlinkRelBuilder.pushFunctionScan(RelBuilder relBuilder, org.apache.calcite.sql.SqlOperator operator, int inputCount, Iterable<org.apache.calcite.rex.RexNode> operands, List<String> aliases) functionScan(SqlOperator, int, Iterable)cannot work smoothly with aliases which is why we implement a custom one.FlinkRelBuilder.queryOperation(org.apache.flink.table.operations.QueryOperation queryOperation) FlinkRelBuilder.rank(org.apache.calcite.util.ImmutableBitSet partitionKey, org.apache.calcite.rel.RelCollation orderKey, org.apache.flink.table.runtime.operators.rank.RankType rankType, org.apache.flink.table.runtime.operators.rank.RankRange rankRange, org.apache.calcite.rel.type.RelDataTypeField rankNumberType, boolean outputRankNumber) FlinkRelBuilder.transform(UnaryOperator<RelBuilder.Config> transform) FlinkRelBuilder.watermark(int rowtimeFieldIndex, org.apache.calcite.rex.RexNode watermarkExpr) Build watermark assigner relational node.FlinkRelBuilder.windowAggregate(LogicalWindow window, RelBuilder.GroupKey groupKey, List<org.apache.flink.table.runtime.groupwindow.NamedWindowProperty> namedProperties, Iterable<RelBuilder.AggCall> aggCalls) Build window aggregate for either aggregate or table aggregate.Methods in org.apache.flink.table.planner.calcite with parameters of type RelBuilderModifier and TypeMethodDescriptionstatic RelBuilderFlinkRelBuilder.pushFunctionScan(RelBuilder relBuilder, org.apache.calcite.sql.SqlOperator operator, int inputCount, Iterable<org.apache.calcite.rex.RexNode> operands, List<String> aliases) functionScan(SqlOperator, int, Iterable)cannot work smoothly with aliases which is why we implement a custom one. -
Uses of RelBuilder in org.apache.flink.table.planner.delegation
Methods in org.apache.flink.table.planner.delegation that return RelBuilder -
Uses of RelBuilder in org.apache.flink.table.planner.expressions
Methods in org.apache.flink.table.planner.expressions with parameters of type RelBuilderModifier and TypeMethodDescriptionstatic org.apache.flink.table.expressions.ResolvedExpressionDeclarativeExpressionResolver.toRexDistinctKey(RelBuilder builder, String name, org.apache.flink.table.types.logical.LogicalType t) static org.apache.flink.table.expressions.ResolvedExpressionDeclarativeExpressionResolver.toRexInputRef(RelBuilder builder, int i, org.apache.flink.table.types.logical.LogicalType t) Constructors in org.apache.flink.table.planner.expressions with parameters of type RelBuilderModifierConstructorDescriptionCallExpressionResolver(RelBuilder relBuilder) DeclarativeExpressionResolver(RelBuilder relBuilder, org.apache.flink.table.functions.DeclarativeAggregateFunction function, boolean isMerge) SqlAggFunctionVisitor(RelBuilder relBuilder) -
Uses of RelBuilder in org.apache.flink.table.planner.expressions.converter
Methods in org.apache.flink.table.planner.expressions.converter that return RelBuilderConstructors in org.apache.flink.table.planner.expressions.converter with parameters of type RelBuilder -
Uses of RelBuilder in org.apache.flink.table.planner.plan.nodes.exec.batch
Methods in org.apache.flink.table.planner.plan.nodes.exec.batch with parameters of type RelBuilderModifier and TypeMethodDescriptionprotected org.apache.flink.api.dag.Transformation<org.apache.flink.table.data.RowData>BatchExecLookupJoin.createSyncLookupJoinWithState(org.apache.flink.api.dag.Transformation<org.apache.flink.table.data.RowData> inputTransformation, org.apache.calcite.plan.RelOptTable temporalTable, ExecNodeConfig config, ClassLoader classLoader, Map<Integer, LookupJoinUtil.LookupKey> allLookupKeys, org.apache.flink.table.functions.TableFunction<?> syncLookupFunction, RelBuilder relBuilder, org.apache.flink.table.types.logical.RowType inputRowType, org.apache.flink.table.types.logical.RowType tableSourceRowType, org.apache.flink.table.types.logical.RowType resultRowType, boolean isLeftOuterJoin, boolean isObjectReuseEnabled, boolean lookupKeyContainsPrimaryKey) -
Uses of RelBuilder in org.apache.flink.table.planner.plan.nodes.exec.common
Methods in org.apache.flink.table.planner.plan.nodes.exec.common with parameters of type RelBuilderModifier and TypeMethodDescriptionprotected org.apache.flink.streaming.api.functions.ProcessFunction<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData> CommonExecLookupJoin.createSyncLookupJoinFunction(org.apache.calcite.plan.RelOptTable temporalTable, ExecNodeConfig config, ClassLoader classLoader, Map<Integer, LookupJoinUtil.LookupKey> allLookupKeys, org.apache.flink.table.functions.TableFunction<?> syncLookupFunction, RelBuilder relBuilder, org.apache.flink.table.types.logical.RowType inputRowType, org.apache.flink.table.types.logical.RowType tableSourceRowType, org.apache.flink.table.types.logical.RowType resultRowType, boolean isLeftOuterJoin, boolean isObjectReuseEnabled) protected abstract org.apache.flink.api.dag.Transformation<org.apache.flink.table.data.RowData>CommonExecLookupJoin.createSyncLookupJoinWithState(org.apache.flink.api.dag.Transformation<org.apache.flink.table.data.RowData> inputTransformation, org.apache.calcite.plan.RelOptTable temporalTable, ExecNodeConfig config, ClassLoader classLoader, Map<Integer, LookupJoinUtil.LookupKey> allLookupKeys, org.apache.flink.table.functions.TableFunction<?> syncLookupFunction, RelBuilder relBuilder, org.apache.flink.table.types.logical.RowType inputRowType, org.apache.flink.table.types.logical.RowType tableSourceRowType, org.apache.flink.table.types.logical.RowType resultRowType, boolean isLeftOuterJoin, boolean isObjectReuseEnabled, boolean lookupKeyContainsPrimaryKey) protected org.apache.calcite.rel.type.RelDataTypeCommonExecLookupJoin.getProjectionOutputRelDataType(RelBuilder relBuilder) static org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.cep.pattern.Pattern<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>, List<String>> CommonExecMatch.translatePattern(MatchSpec matchSpec, org.apache.flink.configuration.ReadableConfig config, ClassLoader classLoader, RelBuilder relBuilder, org.apache.flink.table.types.logical.RowType inputRowType) -
Uses of RelBuilder in org.apache.flink.table.planner.plan.nodes.exec.stream
Methods in org.apache.flink.table.planner.plan.nodes.exec.stream with parameters of type RelBuilderModifier and TypeMethodDescriptionprotected org.apache.flink.api.dag.Transformation<org.apache.flink.table.data.RowData>StreamExecLookupJoin.createSyncLookupJoinWithState(org.apache.flink.api.dag.Transformation<org.apache.flink.table.data.RowData> inputTransformation, org.apache.calcite.plan.RelOptTable temporalTable, ExecNodeConfig config, ClassLoader classLoader, Map<Integer, LookupJoinUtil.LookupKey> allLookupKeys, org.apache.flink.table.functions.TableFunction<?> syncLookupFunction, RelBuilder relBuilder, org.apache.flink.table.types.logical.RowType inputRowType, org.apache.flink.table.types.logical.RowType tableSourceRowType, org.apache.flink.table.types.logical.RowType resultRowType, boolean isLeftOuterJoin, boolean isObjectReuseEnabled, boolean lookupKeyContainsPrimaryKey) -
Uses of RelBuilder in org.apache.flink.table.planner.plan.rules.logical
Methods in org.apache.flink.table.planner.plan.rules.logical with parameters of type RelBuilderModifier and TypeMethodDescriptionprotected List<org.apache.calcite.rex.RexNode>PushFilterIntoSourceScanRuleBase.convertExpressionToRexNode(List<org.apache.flink.table.expressions.ResolvedExpression> expressions, RelBuilder relBuilder) static org.apache.calcite.rel.RelNodeWindowPropertiesRules.convertWindowNodes(RelBuilder builder, org.apache.calcite.rel.logical.LogicalProject project, Optional<org.apache.calcite.rel.logical.LogicalFilter> filter, org.apache.calcite.rel.logical.LogicalProject innerProject, LogicalWindowAggregate agg) protected org.apache.calcite.rex.RexNodePushFilterIntoSourceScanRuleBase.createRemainingCondition(RelBuilder relBuilder, List<org.apache.flink.table.expressions.ResolvedExpression> expressions, org.apache.calcite.rex.RexNode[] unconvertedPredicates) protected voidWindowAggregateReduceFunctionsRule.newAggregateRel(RelBuilder relBuilder, org.apache.calcite.rel.core.Aggregate oldAgg, List<org.apache.calcite.rel.core.AggregateCall> newCalls) protected voidWindowAggregateReduceFunctionsRule.newCalcRel(RelBuilder relBuilder, org.apache.calcite.rel.type.RelDataType rowType, List<org.apache.calcite.rex.RexNode> exprs) static org.apache.calcite.rex.RexNodeWindowPropertiesRules.replaceGroupAuxiliaries(org.apache.calcite.rex.RexNode node, LogicalWindow window, RelBuilder builder) Replace group auxiliaries with field references.protected scala.Tuple2<org.apache.flink.table.connector.source.abilities.SupportsFilterPushDown.Result,TableSourceTable> PushFilterIntoSourceScanRuleBase.resolveFiltersAndCreateTableSourceTable(org.apache.calcite.rex.RexNode[] convertiblePredicates, TableSourceTable oldTableSourceTable, org.apache.calcite.rel.core.TableScan scan, RelBuilder relBuilder) Resolves filters using the underlying sourcesSupportsFilterPushDownand creates a newTableSourceTablewith the supplied predicates. -
Uses of RelBuilder in org.apache.flink.table.planner.plan.utils
Methods in org.apache.flink.table.planner.plan.utils with parameters of type RelBuilderModifier and TypeMethodDescriptionstatic List<org.apache.calcite.rex.RexNode>SetOpRewriteUtil.generateEqualsCondition(RelBuilder relBuilder, org.apache.calcite.rel.RelNode left, org.apache.calcite.rel.RelNode right, List<Integer> keys) Generate equals condition by keys (The index on both sides is the same) to join left relNode and right relNode.static org.apache.calcite.rel.RelNodeSetOpRewriteUtil.replicateRows(RelBuilder relBuilder, org.apache.calcite.rel.type.RelDataType outputRelDataType, List<Integer> fields) Use table function to replicate the row N times. -
Uses of RelBuilder in org.apache.flink.table.planner.utils
Methods in org.apache.flink.table.planner.utils with parameters of type RelBuilderModifier and TypeMethodDescriptionstatic FlinkContextShortcutUtils.unwrapContext(RelBuilder relBuilder) static FlinkTypeFactoryShortcutUtils.unwrapTypeFactory(RelBuilder relBuilder)