Package org.apache.calcite.rel.logical
Class LogicalSort
java.lang.Object
org.apache.calcite.rel.AbstractRelNode
org.apache.calcite.rel.SingleRel
org.apache.calcite.rel.core.Sort
org.apache.calcite.rel.logical.LogicalSort
- All Implemented Interfaces:
Cloneable
,RelOptNode
,RelNode
public final class LogicalSort extends Sort
Sub-class of
Sort
not
targeted at any particular engine or calling convention.-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LogicalSort(RelInput input)
Creates a LogicalSort by parsing serialized output. -
Method Summary
Modifier and Type Method Description RelNode
accept(RelShuttle shuttle)
Accepts a visit from a shuttle.Sort
copy(RelTraitSet traitSet, RelNode newInput, RelCollation newCollation, RexNode offset, RexNode fetch)
static LogicalSort
create(RelNode input, RelCollation collation, RexNode offset, RexNode fetch)
Creates a LogicalSort.Methods inherited from class org.apache.calcite.rel.core.Sort
accept, computeSelfCost, copy, copy, explainTerms, getCollation, getSortExps, isEnforcer
Methods inherited from class org.apache.calcite.rel.SingleRel
childrenAccept, deriveRowType, estimateRowCount, getInput, getInputs, replaceInput
Methods inherited from class org.apache.calcite.rel.AbstractRelNode
collectVariablesSet, collectVariablesUsed, deepEquals, deepHashCode, equals, explain, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getRelDigest, getRelTypeName, getRowType, getTable, getTraitSet, getVariablesSet, hashCode, isValid, metadata, onRegister, recomputeDigest, register, sole, toString
-
Constructor Details
-
LogicalSort
Creates a LogicalSort by parsing serialized output.
-
-
Method Details
-
create
public static LogicalSort create(RelNode input, RelCollation collation, RexNode offset, RexNode fetch)Creates a LogicalSort.- Parameters:
input
- Input relational expressioncollation
- array of sort specificationsoffset
- Expression for number of rows to discard before returning first rowfetch
- Expression for number of rows to fetch
-
copy
public Sort copy(RelTraitSet traitSet, RelNode newInput, RelCollation newCollation, RexNode offset, RexNode fetch) -
accept
Description copied from interface:RelNode
Accepts a visit from a shuttle.- Specified by:
accept
in interfaceRelNode
- Overrides:
accept
in classAbstractRelNode
- Parameters:
shuttle
- Shuttle- Returns:
- A copy of this node incorporating changes made by the shuttle to this node's children
-