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:
- Cloneable,- RelOptNode,- Hintable,- RelNode
Sub-class of 
TableFunctionScan
 not targeted at any particular engine or calling convention.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.calcite.rel.RelNodeRelNode.Context
- 
Field SummaryFields inherited from class org.apache.calcite.rel.core.TableFunctionScancolumnMappings, hintsFields inherited from class org.apache.calcite.rel.AbstractRelNodedigest, id, rowType, traitSet
- 
Constructor SummaryConstructorsConstructorDescriptionLogicalTableFunctionScan(RelOptCluster cluster, List<RelNode> inputs, RexNode rexCall, @Nullable Type elementType, RelDataType rowType, @Nullable Set<RelColumnMapping> columnMappings) Deprecated.LogicalTableFunctionScan(RelOptCluster cluster, RelTraitSet traitSet, List<RelHint> hints, List<RelNode> inputs, RexNode rexCall, @Nullable Type elementType, RelDataType rowType, @Nullable Set<RelColumnMapping> columnMappings) Creates aLogicalTableFunctionScan.LogicalTableFunctionScan(RelOptCluster cluster, RelTraitSet traitSet, List<RelNode> inputs, RexNode rexCall, @Nullable Type elementType, RelDataType rowType, @Nullable Set<RelColumnMapping> columnMappings) Creates aLogicalTableFunctionScan.LogicalTableFunctionScan(RelInput input) Creates a LogicalTableFunctionScan by parsing serialized output.
- 
Method SummaryModifier and TypeMethodDescription@Nullable RelOptCostcomputeSelfCost(RelOptPlanner planner, RelMetadataQuery mq) Returns the cost of this plan (not including children).copy(RelTraitSet traitSet, List<RelNode> inputs, RexNode rexCall, @Nullable Type elementType, RelDataType rowType, @Nullable Set<RelColumnMapping> columnMappings) Copies this relational expression, substituting traits and inputs.static LogicalTableFunctionScancreate(RelOptCluster cluster, List<RelNode> inputs, RexNode rexCall, @Nullable Type elementType, RelDataType rowType, @Nullable Set<RelColumnMapping> columnMappings) Creates a LogicalTableFunctionScan.Returns a new relational expression with the specified hintshintList.Methods inherited from class org.apache.calcite.rel.core.TableFunctionScanaccept, copy, estimateRowCount, explainTerms, getCall, getColumnMappings, getElementType, getHints, getInputs, replaceInputMethods inherited from class org.apache.calcite.rel.AbstractRelNodeaccept, childrenAccept, collectVariablesSet, collectVariablesUsed, deepEquals, deepHashCode, deriveRowType, equals, explain, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getRelDigest, getRelTypeName, getRowType, getTable, getTraitSet, getVariablesSet, hashCode, isEnforcer, isValid, metadata, onRegister, recomputeDigest, register, sole, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.calcite.rel.hint.HintableattachHintsMethods inherited from interface org.apache.calcite.rel.RelNodeexplain, fieldIsNullable, stripped
- 
Constructor Details- 
LogicalTableFunctionScanpublic LogicalTableFunctionScan(RelOptCluster cluster, RelTraitSet traitSet, List<RelHint> hints, List<RelNode> inputs, RexNode rexCall, @Nullable Type elementType, RelDataType rowType, @Nullable Set<RelColumnMapping> columnMappings) Creates aLogicalTableFunctionScan.- Parameters:
- cluster- Cluster that this relational expression belongs to
- traitSet- Trait set
- hints- The hints of this node.
- inputs- 0 or more relational inputs
- rexCall- Function invocation expression
- elementType- Element type of the collection that will implement this table
- rowType- Row type produced by function
- columnMappings- Column mappings associated with this function
 
- 
LogicalTableFunctionScanpublic LogicalTableFunctionScan(RelOptCluster cluster, RelTraitSet traitSet, List<RelNode> inputs, RexNode rexCall, @Nullable Type elementType, RelDataType rowType, @Nullable Set<RelColumnMapping> columnMappings) Creates aLogicalTableFunctionScan.- Parameters:
- cluster- Cluster that this relational expression belongs to
- traitSet- Trait set
- inputs- 0 or more relational inputs
- rexCall- Function invocation expression
- elementType- Element type of the collection that will implement this table
- rowType- Row type produced by function
- columnMappings- Column mappings associated with this function
 
- 
LogicalTableFunctionScan@Deprecated public LogicalTableFunctionScan(RelOptCluster cluster, List<RelNode> inputs, RexNode rexCall, @Nullable Type elementType, RelDataType rowType, @Nullable Set<RelColumnMapping> columnMappings) Deprecated.
- 
LogicalTableFunctionScanCreates a LogicalTableFunctionScan by parsing serialized output.
 
- 
- 
Method Details- 
createpublic static LogicalTableFunctionScan create(RelOptCluster cluster, List<RelNode> inputs, RexNode rexCall, @Nullable Type elementType, RelDataType rowType, @Nullable Set<RelColumnMapping> columnMappings) Creates a LogicalTableFunctionScan.
- 
copypublic LogicalTableFunctionScan copy(RelTraitSet traitSet, List<RelNode> inputs, RexNode rexCall, @Nullable Type elementType, RelDataType rowType, @Nullable Set<RelColumnMapping> columnMappings) Description copied from class:TableFunctionScanCopies this relational expression, substituting traits and inputs.- Specified by:
- copyin class- TableFunctionScan
- Parameters:
- traitSet- Traits
- inputs- 0 or more relational inputs
- rexCall- Function invocation expression
- elementType- Element type of the collection that will implement this table
- rowType- Row type produced by function
- columnMappings- Column mappings associated with this function
- Returns:
- Copy of this relational expression, substituting traits and inputs
 
- 
computeSelfCostDescription copied from interface:RelNodeReturns 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:
- computeSelfCostin interface- RelNode
- Overrides:
- computeSelfCostin class- AbstractRelNode
- Parameters:
- planner- Planner for cost calculation
- mq- Metadata query
- Returns:
- Cost of this plan (not including children)
 
- 
withHintsDescription copied from interface:HintableReturns a new relational expression with the specified hintshintList.This method should be overridden by every logical node that supports hint. It is only for internal use during decorrelation. Sub-class should return a new copy of the relational expression. The default implementation returns the relational expression directly only because not every kind of relational expression supports hints. - Returns:
- Relational expression with set up hints
 
 
-