|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.rel.AbstractRelNode
org.eigenbase.rel.TableFunctionRelBase
public abstract class TableFunctionRelBase
TableFunctionRelBase is an abstract base class for
implementations of TableFunctionRel.
| Field Summary | |
|---|---|
private Set<RelColumnMapping> |
columnMappings
|
protected RelNode[] |
inputs
|
private RexNode |
rexCall
|
private RelDataType |
rowType
|
| Fields inherited from class org.eigenbase.rel.AbstractRelNode |
|---|
digest, id, nextId, traits |
| Fields inherited from interface org.eigenbase.rel.RelNode |
|---|
emptyArray |
| Constructor Summary | |
|---|---|
protected |
TableFunctionRelBase(RelOptCluster cluster,
RelTraitSet traits,
RexNode rexCall,
RelDataType rowType,
RelNode[] inputs)
Creates a TableFunctionRelBase. |
| Method Summary | |
|---|---|
protected RelDataType |
deriveRowType()
|
void |
explain(RelOptPlanWriter pw)
|
RexNode |
getCall()
|
RexNode[] |
getChildExps()
Returns an array of this relational expression's child expressions (not including the inputs returned by RelNode.getInputs(). |
Set<RelColumnMapping> |
getColumnMappings()
|
RelNode[] |
getInputs()
Returns an array of this relational expression's inputs. |
double |
getRows()
Returns an estimate of the number of rows this relational expression will return. |
void |
replaceInput(int ordinalInParent,
RelNode p)
Replaces the ordinalInParentth input. |
void |
setColumnMappings(Set<RelColumnMapping> columnMappings)
Declares the column mappings associated with this function. |
| Methods inherited from class org.eigenbase.rel.AbstractRelNode |
|---|
childrenAccept, clone, cloneTraits, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getOrCreateCorrelVariable, getQuery, getRelTypeName, getRowType, getTable, getTraits, getVariablesStopped, inheritTraitsFrom, isAccessTo, isDistinct, isValid, onRegister, recomputeDigest, register, registerCorrelVariable, setCorrelVariable, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final RexNode rexCall
private final RelDataType rowType
protected final RelNode[] inputs
private Set<RelColumnMapping> columnMappings
| Constructor Detail |
|---|
protected TableFunctionRelBase(RelOptCluster cluster,
RelTraitSet traits,
RexNode rexCall,
RelDataType rowType,
RelNode[] inputs)
TableFunctionRelBase.
cluster - RelOptCluster this relational expression belongs
torexCall - function invocation expressionrowType - row type produced by functioninputs - 0 or more relational inputs| Method Detail |
|---|
public RelNode[] getInputs()
RelNodenull.
getInputs in interface RelNodegetInputs in class AbstractRelNode
public void replaceInput(int ordinalInParent,
RelNode p)
RelNodeordinalInParentth input. You must
override this method if you override RelNode.getInputs().
replaceInput in interface RelNodereplaceInput in class AbstractRelNodepublic RexNode[] getChildExps()
RelNodeRelNode.getInputs(). If there are no
child expressions, returns an empty array, not null.
getChildExps in interface RelNodegetChildExps in class AbstractRelNodepublic double getRows()
RelNodeNOTE jvs 29-Mar-2006: Don't call this method directly. Instead, use
RelMetadataQuery.getRowCount(org.eigenbase.rel.RelNode), which gives plugins a chance to
override the rel's default ideas about row count.
getRows in interface RelNodegetRows in class AbstractRelNodepublic RexNode getCall()
public void explain(RelOptPlanWriter pw)
explain in interface RelNodeexplain in class AbstractRelNodepublic Set<RelColumnMapping> getColumnMappings()
public void setColumnMappings(Set<RelColumnMapping> columnMappings)
columnMappings - new mappings to setprotected RelDataType deriveRowType()
deriveRowType in class AbstractRelNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||