public class Collect extends SingleRel
Rules:
net.sf.farrago.fennel.rel.FarragoMultisetSplitterRule
creates a Collect from a call to
SqlMultisetValueConstructor or to
SqlMultisetQueryConstructor.| Modifier and Type | Field and Description |
|---|---|
protected String |
fieldName |
digest, id, rowType, traitSet| Constructor and Description |
|---|
Collect(RelInput input)
Creates a Collect by parsing serialized output.
|
Collect(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode child,
String fieldName)
Creates a Collect.
|
| Modifier and Type | Method and Description |
|---|---|
RelNode |
copy(RelTraitSet traitSet,
List<RelNode> inputs)
Creates a copy of this relational expression, perhaps changing traits and
inputs.
|
RelNode |
copy(RelTraitSet traitSet,
RelNode input) |
static RelDataType |
deriveCollectRowType(SingleRel rel,
String fieldName)
Derives the output type of a collect relational expression.
|
protected RelDataType |
deriveRowType() |
RelWriter |
explainTerms(RelWriter pw)
Describes the inputs and attributes of this relational expression.
|
String |
getFieldName()
Returns the name of the sole output field.
|
childrenAccept, getInput, getInputs, getRows, replaceInputaccept, accept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, explain, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRowType, getTable, getTraitSet, getVariablesStopped, isDistinct, isKey, isValid, metadata, onRegister, recomputeDigest, register, sole, toStringprotected final String fieldName
public Collect(RelOptCluster cluster, RelTraitSet traitSet, RelNode child, String fieldName)
cluster - Clusterchild - Child relational expressionfieldName - Name of the sole output fieldpublic Collect(RelInput input)
public final RelNode copy(RelTraitSet traitSet, List<RelNode> inputs)
RelNodeSub-classes with other important attributes are encouraged to create variants of this method with more parameters.
copy in interface RelNodecopy in class AbstractRelNodetraitSet - Trait setinputs - Inputspublic RelNode copy(RelTraitSet traitSet, RelNode input)
public RelWriter explainTerms(RelWriter pw)
AbstractRelNodesuper.explainTerms, then call the
RelWriterImpl.input(String, RelNode)
and
RelWriterImpl.item(String, Object)
methods for each input and attribute.explainTerms in class SingleRelpw - Plan writerpublic String getFieldName()
protected RelDataType deriveRowType()
deriveRowType in class SingleRelpublic static RelDataType deriveCollectRowType(SingleRel rel, String fieldName)
rel - relational expressionfieldName - name of sole output fieldCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.