|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ordinalInParent th 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 inputsMethod Detail |
---|
public RelNode[] getInputs()
RelNode
null
.
getInputs
in interface RelNode
getInputs
in class AbstractRelNode
public void replaceInput(int ordinalInParent, RelNode p)
RelNode
ordinalInParent
th input. You must
override this method if you override RelNode.getInputs()
.
replaceInput
in interface RelNode
replaceInput
in class AbstractRelNode
public RexNode[] getChildExps()
RelNode
RelNode.getInputs()
. If there are no
child expressions, returns an empty array, not null
.
getChildExps
in interface RelNode
getChildExps
in class AbstractRelNode
public double getRows()
RelNode
NOTE 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 RelNode
getRows
in class AbstractRelNode
public RexNode getCall()
public void explain(RelOptPlanWriter pw)
explain
in interface RelNode
explain
in class AbstractRelNode
public 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 |