Package org.apache.calcite.rel.logical
Class LogicalTableFunctionScan
- java.lang.Object
-
- org.apache.calcite.rel.AbstractRelNode
-
- org.apache.calcite.rel.core.TableFunctionScan
-
- org.apache.calcite.rel.logical.LogicalTableFunctionScan
-
- All Implemented Interfaces:
java.lang.Cloneable
,RelOptNode
,RelNode
public class LogicalTableFunctionScan extends TableFunctionScan
Sub-class ofTableFunctionScan
not targeted at any particular engine or calling convention.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.calcite.rel.RelNode
RelNode.Context
-
-
Field Summary
-
Fields inherited from class org.apache.calcite.rel.core.TableFunctionScan
columnMappings
-
Fields inherited from class org.apache.calcite.rel.AbstractRelNode
digest, id, rowType, traitSet
-
-
Constructor Summary
Constructors Constructor Description LogicalTableFunctionScan(RelOptCluster cluster, java.util.List<RelNode> inputs, RexNode rexCall, java.lang.reflect.Type elementType, RelDataType rowType, java.util.Set<RelColumnMapping> columnMappings)
Deprecated.LogicalTableFunctionScan(RelOptCluster cluster, RelTraitSet traitSet, java.util.List<RelNode> inputs, RexNode rexCall, java.lang.reflect.Type elementType, RelDataType rowType, java.util.Set<RelColumnMapping> columnMappings)
Creates aLogicalTableFunctionScan
.LogicalTableFunctionScan(RelInput input)
Creates a LogicalTableFunctionScan by parsing serialized output.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RelOptCost
computeSelfCost(RelOptPlanner planner, RelMetadataQuery mq)
Returns the cost of this plan (not including children).LogicalTableFunctionScan
copy(RelTraitSet traitSet, java.util.List<RelNode> inputs, RexNode rexCall, java.lang.reflect.Type elementType, RelDataType rowType, java.util.Set<RelColumnMapping> columnMappings)
Copies this relational expression, substituting traits and inputs.static LogicalTableFunctionScan
create(RelOptCluster cluster, java.util.List<RelNode> inputs, RexNode rexCall, java.lang.reflect.Type elementType, RelDataType rowType, java.util.Set<RelColumnMapping> columnMappings)
Creates a LogicalTableFunctionScan.-
Methods inherited from class org.apache.calcite.rel.core.TableFunctionScan
accept, copy, estimateRowCount, explainTerms, getCall, getChildExps, getColumnMappings, getElementType, getInputs, replaceInput
-
Methods inherited from class org.apache.calcite.rel.AbstractRelNode
accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, deriveRowType, explain, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraitSet, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, sole, toString
-
-
-
-
Constructor Detail
-
LogicalTableFunctionScan
public LogicalTableFunctionScan(RelOptCluster cluster, RelTraitSet traitSet, java.util.List<RelNode> inputs, RexNode rexCall, java.lang.reflect.Type elementType, RelDataType rowType, java.util.Set<RelColumnMapping> columnMappings)
Creates aLogicalTableFunctionScan
.- Parameters:
cluster
- Cluster that this relational expression belongs toinputs
- 0 or more relational inputsrexCall
- function invocation expressionelementType
- element type of the collection that will implement this tablerowType
- row type produced by functioncolumnMappings
- column mappings associated with this function
-
LogicalTableFunctionScan
@Deprecated public LogicalTableFunctionScan(RelOptCluster cluster, java.util.List<RelNode> inputs, RexNode rexCall, java.lang.reflect.Type elementType, RelDataType rowType, java.util.Set<RelColumnMapping> columnMappings)
Deprecated.
-
LogicalTableFunctionScan
public LogicalTableFunctionScan(RelInput input)
Creates a LogicalTableFunctionScan by parsing serialized output.
-
-
Method Detail
-
create
public static LogicalTableFunctionScan create(RelOptCluster cluster, java.util.List<RelNode> inputs, RexNode rexCall, java.lang.reflect.Type elementType, RelDataType rowType, java.util.Set<RelColumnMapping> columnMappings)
Creates a LogicalTableFunctionScan.
-
copy
public LogicalTableFunctionScan copy(RelTraitSet traitSet, java.util.List<RelNode> inputs, RexNode rexCall, java.lang.reflect.Type elementType, RelDataType rowType, java.util.Set<RelColumnMapping> columnMappings)
Description copied from class:TableFunctionScan
Copies this relational expression, substituting traits and inputs.- Specified by:
copy
in classTableFunctionScan
- Parameters:
traitSet
- Traitsinputs
- 0 or more relational inputsrexCall
- Function invocation expressionelementType
- Element type of the collection that will implement this tablerowType
- Row type produced by functioncolumnMappings
- Column mappings associated with this function- Returns:
- Copy of this relational expression, substituting traits and inputs
-
computeSelfCost
public RelOptCost computeSelfCost(RelOptPlanner planner, RelMetadataQuery mq)
Description copied from interface:RelNode
Returns the cost of this plan (not including children). The base implementation throws an error; derived classes should override.NOTE jvs 29-Mar-2006: Don't call this method directly. Instead, use
RelMetadataQuery.getNonCumulativeCost(org.apache.calcite.rel.RelNode)
, which gives plugins a chance to override the rel's default ideas about cost.- Specified by:
computeSelfCost
in interfaceRelNode
- Overrides:
computeSelfCost
in classAbstractRelNode
- Parameters:
planner
- Planner for cost calculationmq
- Metadata query- Returns:
- Cost of this plan (not including children)
-
-