public class MutableProject extends MutableRel
Project.| Modifier and Type | Field and Description |
|---|---|
protected MutableRel |
input |
List<RexNode> |
projects |
cluster, ordinalInParent, PAIRWISE_STRING_EQUIVALENCE, parent, rowType, STRING_EQUIVALENCE, type| Modifier and Type | Method and Description |
|---|---|
void |
childrenAccept(MutableRelVisitor visitor) |
MutableRel |
clone() |
StringBuilder |
digest(StringBuilder buf) |
boolean |
equals(@Nullable Object obj) |
MutableRel |
getInput() |
List<MutableRel> |
getInputs() |
Mappings.TargetMapping |
getMapping() |
List<Pair<RexNode,String>> |
getNamedProjects()
Returns a list of (expression, name) pairs.
|
int |
hashCode() |
static MutableRel |
of(MutableRel input,
List<RexNode> exprList,
List<String> fieldNameList)
Creates a MutableProject.
|
static MutableProject |
of(RelDataType rowType,
MutableRel input,
List<RexNode> projects)
Creates a MutableProject.
|
void |
setInput(int ordinalInParent,
MutableRel input) |
deep, getParent, replaceInParent, toStringprotected MutableRel input
public static MutableProject of(RelDataType rowType, MutableRel input, List<RexNode> projects)
rowType - Row typeinput - Input relational expressionprojects - List of expressions for the input columnspublic static MutableRel of(MutableRel input, List<RexNode> exprList, List<String> fieldNameList)
input - Input relational expressionexprList - List of expressions for the input columnsfieldNameList - Aliases of the expressions, or null to generatepublic StringBuilder digest(StringBuilder buf)
digest in class MutableRelpublic final List<Pair<RexNode,String>> getNamedProjects()
public Mappings.TargetMapping getMapping()
public MutableRel clone()
clone in class MutableRelpublic void setInput(int ordinalInParent,
MutableRel input)
setInput in class MutableRelpublic List<MutableRel> getInputs()
getInputs in class MutableRelpublic void childrenAccept(MutableRelVisitor visitor)
childrenAccept in class MutableRelpublic MutableRel getInput()
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.