public class MutableProject extends MutableSingleRel
Project.| Modifier and Type | Field and Description |
|---|---|
List<RexNode> |
projects |
inputcluster, ordinalInParent, PAIRWISE_STRING_EQUIVALENCE, parent, rowType, STRING_EQUIVALENCE, type| Modifier | Constructor and Description |
|---|---|
private |
MutableProject(RelDataType rowType,
MutableRel input,
List<RexNode> projects) |
| Modifier and Type | Method and Description |
|---|---|
MutableRel |
clone() |
StringBuilder |
digest(StringBuilder buf) |
boolean |
equals(Object obj) |
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.
|
childrenAccept, getInput, getInputs, setInputdeep, getParent, replaceInParent, toStringprivate MutableProject(RelDataType rowType, MutableRel input, List<RexNode> projects)
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 MutableRelCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.