public final class LogicalWindow extends Window
Window
not targeted at any particular engine or
calling convention.
Temporarily copy from calcite to cherry-pick [CALCITE-5107] and will be removed when upgrade the latest calcite.
Window.Group, Window.RexWinAggCall
Constructor and Description |
---|
LogicalWindow(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traitSet,
List<org.apache.calcite.rel.hint.RelHint> hints,
org.apache.calcite.rel.RelNode input,
List<org.apache.calcite.rex.RexLiteral> constants,
org.apache.calcite.rel.type.RelDataType rowType,
List<Window.Group> groups)
Creates a LogicalWindow.
|
LogicalWindow(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traitSet,
org.apache.calcite.rel.RelNode input,
List<org.apache.calcite.rex.RexLiteral> constants,
org.apache.calcite.rel.type.RelDataType rowType,
List<Window.Group> groups)
Creates a LogicalWindow.
|
Modifier and Type | Method and Description |
---|---|
LogicalWindow |
copy(org.apache.calcite.plan.RelTraitSet traitSet,
List<org.apache.calcite.rel.RelNode> inputs) |
static org.apache.calcite.rel.RelNode |
create(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traitSet,
RelBuilder relBuilder,
org.apache.calcite.rel.RelNode child,
org.apache.calcite.rex.RexProgram program)
Creates a LogicalWindow by parsing a
RexProgram . |
static LogicalWindow |
create(org.apache.calcite.plan.RelTraitSet traitSet,
org.apache.calcite.rel.RelNode input,
List<org.apache.calcite.rex.RexLiteral> constants,
org.apache.calcite.rel.type.RelDataType rowType,
List<Window.Group> groups)
Creates a LogicalWindow.
|
org.apache.calcite.rel.RelNode |
withHints(List<org.apache.calcite.rel.hint.RelHint> hintList) |
computeSelfCost, explainTerms, getCollation, getConstants, getHints, getProjectOrdinals, isValid
childrenAccept, deriveRowType, estimateRowCount, getInput, getInputs, replaceInput
accept, accept, collectVariablesSet, collectVariablesUsed, deepEquals, deepHashCode, equals, explain, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getRelDigest, getRelTypeName, getRowType, getTable, getTraitSet, getVariablesSet, hashCode, isEnforcer, metadata, onRegister, recomputeDigest, register, sole, toString
public LogicalWindow(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, List<org.apache.calcite.rel.hint.RelHint> hints, org.apache.calcite.rel.RelNode input, List<org.apache.calcite.rex.RexLiteral> constants, org.apache.calcite.rel.type.RelDataType rowType, List<Window.Group> groups)
Use create(org.apache.calcite.plan.RelTraitSet, org.apache.calcite.rel.RelNode, java.util.List<org.apache.calcite.rex.RexLiteral>, org.apache.calcite.rel.type.RelDataType, java.util.List<org.apache.calcite.rel.core.Window.Group>)
unless you know what you're doing.
cluster
- ClustertraitSet
- Trait sethints
- hints for this nodeinput
- Input relational expressionconstants
- List of constants that are additional inputsrowType
- Output row typegroups
- Window groupspublic LogicalWindow(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode input, List<org.apache.calcite.rex.RexLiteral> constants, org.apache.calcite.rel.type.RelDataType rowType, List<Window.Group> groups)
Use create(org.apache.calcite.plan.RelTraitSet, org.apache.calcite.rel.RelNode, java.util.List<org.apache.calcite.rex.RexLiteral>, org.apache.calcite.rel.type.RelDataType, java.util.List<org.apache.calcite.rel.core.Window.Group>)
unless you know what you're doing.
public LogicalWindow copy(org.apache.calcite.plan.RelTraitSet traitSet, List<org.apache.calcite.rel.RelNode> inputs)
copy
in interface org.apache.calcite.rel.RelNode
copy
in class org.apache.calcite.rel.AbstractRelNode
public static LogicalWindow create(org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode input, List<org.apache.calcite.rex.RexLiteral> constants, org.apache.calcite.rel.type.RelDataType rowType, List<Window.Group> groups)
input
- Input relational expressiontraitSet
- Trait setconstants
- List of constants that are additional inputsrowType
- Output row typegroups
- Window groupspublic static org.apache.calcite.rel.RelNode create(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, RelBuilder relBuilder, org.apache.calcite.rel.RelNode child, org.apache.calcite.rex.RexProgram program)
RexProgram
.public org.apache.calcite.rel.RelNode withHints(List<org.apache.calcite.rel.hint.RelHint> hintList)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.