Package org.apache.calcite.rel.mutable
Class MutableProject
- java.lang.Object
-
- org.apache.calcite.rel.mutable.MutableRel
-
- org.apache.calcite.rel.mutable.MutableSingleRel
-
- org.apache.calcite.rel.mutable.MutableProject
-
public class MutableProject extends MutableSingleRel
Mutable equivalent ofProject
.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<RexNode>
projects
-
Fields inherited from class org.apache.calcite.rel.mutable.MutableSingleRel
input
-
Fields inherited from class org.apache.calcite.rel.mutable.MutableRel
cluster, ordinalInParent, PAIRWISE_STRING_EQUIVALENCE, parent, rowType, STRING_EQUIVALENCE, type
-
-
Constructor Summary
Constructors Modifier Constructor Description private
MutableProject(RelDataType rowType, MutableRel input, java.util.List<RexNode> projects)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableRel
clone()
java.lang.StringBuilder
digest(java.lang.StringBuilder buf)
boolean
equals(java.lang.Object obj)
Mappings.TargetMapping
getMapping()
java.util.List<Pair<RexNode,java.lang.String>>
getNamedProjects()
Returns a list of (expression, name) pairs.int
hashCode()
static MutableRel
of(MutableRel input, java.util.List<RexNode> exprList, java.util.List<java.lang.String> fieldNameList)
Creates a MutableProject.static MutableProject
of(RelDataType rowType, MutableRel input, java.util.List<RexNode> projects)
Creates a MutableProject.-
Methods inherited from class org.apache.calcite.rel.mutable.MutableSingleRel
childrenAccept, getInput, getInputs, setInput
-
Methods inherited from class org.apache.calcite.rel.mutable.MutableRel
deep, getParent, replaceInParent, toString
-
-
-
-
Field Detail
-
projects
public final java.util.List<RexNode> projects
-
-
Constructor Detail
-
MutableProject
private MutableProject(RelDataType rowType, MutableRel input, java.util.List<RexNode> projects)
-
-
Method Detail
-
of
public static MutableProject of(RelDataType rowType, MutableRel input, java.util.List<RexNode> projects)
Creates a MutableProject.- Parameters:
rowType
- Row typeinput
- Input relational expressionprojects
- List of expressions for the input columns
-
of
public static MutableRel of(MutableRel input, java.util.List<RexNode> exprList, java.util.List<java.lang.String> fieldNameList)
Creates a MutableProject.- Parameters:
input
- Input relational expressionexprList
- List of expressions for the input columnsfieldNameList
- Aliases of the expressions, or null to generate
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
digest
public java.lang.StringBuilder digest(java.lang.StringBuilder buf)
- Specified by:
digest
in classMutableRel
-
getNamedProjects
public final java.util.List<Pair<RexNode,java.lang.String>> getNamedProjects()
Returns a list of (expression, name) pairs.
-
getMapping
public Mappings.TargetMapping getMapping()
-
clone
public MutableRel clone()
- Specified by:
clone
in classMutableRel
-
-