Package org.apache.calcite.rel.mutable
Class MutableProject
java.lang.Object
org.apache.calcite.rel.mutable.MutableRel
org.apache.calcite.rel.mutable.MutableProject
Mutable equivalent of
Project
.-
Field Summary
Fields inherited from class org.apache.calcite.rel.mutable.MutableRel
cluster, ordinalInParent, PAIRWISE_STRING_EQUIVALENCE, parent, rowType, STRING_EQUIVALENCE, type
-
Method Summary
Modifier and TypeMethodDescriptionvoid
childrenAccept
(MutableRelVisitor visitor) clone()
digest
(StringBuilder buf) boolean
getInput()
@Nullable Mappings.TargetMapping
Returns a list of (expression, name) pairs.int
hashCode()
static MutableRel
Creates a MutableProject.static MutableProject
of
(RelDataType rowType, MutableRel input, List<RexNode> projects) Creates a MutableProject.void
setInput
(int ordinalInParent, MutableRel input) Methods inherited from class org.apache.calcite.rel.mutable.MutableRel
deep, getParent, replaceInParent, toString
-
Field Details
-
projects
-
input
-
-
Method Details
-
of
Creates a MutableProject.- Parameters:
rowType
- Row typeinput
- Input relational expressionprojects
- List of expressions for the input columns
-
of
Creates a MutableProject.- Parameters:
input
- Input relational expressionexprList
- List of expressions for the input columnsfieldNameList
- Aliases of the expressions, or null to generate
-
equals
-
hashCode
public int hashCode() -
digest
- Specified by:
digest
in classMutableRel
-
getNamedProjects
Returns a list of (expression, name) pairs. -
getMapping
-
clone
- Specified by:
clone
in classMutableRel
-
setInput
- Specified by:
setInput
in classMutableRel
-
getInputs
- Specified by:
getInputs
in classMutableRel
-
childrenAccept
- Specified by:
childrenAccept
in classMutableRel
-
getInput
-