public class HiveSortLimit extends org.apache.calcite.rel.core.Sort implements HiveRelNode
HiveRelNode.Implementor
CONVENTION
Constructor and Description |
---|
HiveSortLimit(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traitSet,
org.apache.calcite.rel.RelNode child,
org.apache.calcite.rel.RelCollation collation,
org.apache.calcite.rex.RexNode offset,
org.apache.calcite.rex.RexNode fetch) |
Modifier and Type | Method and Description |
---|---|
org.apache.calcite.rel.RelNode |
accept(org.apache.calcite.rel.RelShuttle shuttle) |
HiveSortLimit |
copy(org.apache.calcite.plan.RelTraitSet traitSet,
org.apache.calcite.rel.RelNode newInput,
org.apache.calcite.rel.RelCollation newCollation,
org.apache.calcite.rex.RexNode offset,
org.apache.calcite.rex.RexNode fetch) |
static HiveSortLimit |
create(org.apache.calcite.rel.RelNode input,
org.apache.calcite.rel.RelCollation collation,
org.apache.calcite.rex.RexNode offset,
org.apache.calcite.rex.RexNode fetch)
Creates a HiveSortLimit.
|
org.apache.calcite.rex.RexNode |
getFetchExpr() |
Map<Integer,org.apache.calcite.rex.RexNode> |
getInputRefToCallMap() |
org.apache.calcite.rex.RexNode |
getOffsetExpr() |
void |
implement(HiveRelNode.Implementor implementor) |
boolean |
isRuleCreated() |
void |
setInputRefToCallMap(com.google.common.collect.ImmutableMap<Integer,org.apache.calcite.rex.RexNode> refToCall) |
void |
setRuleCreated(boolean ruleCreated) |
accept, computeSelfCost, copy, copy, explainTerms, getCollation, getSortExps, isEnforcer
childrenAccept, deriveRowType, estimateRowCount, getInput, getInputs, replaceInput
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeSelfCost, copy, deepEquals, deepHashCode, estimateRowCount, explain, getConvention, getCorrelVariable, getDigest, getExpectedInputRowType, getInput, getInputs, getRelDigest, getRelTypeName, getRowType, getTable, getVariablesSet, isEnforcer, isValid, metadata, onRegister, recomputeDigest, register, replaceInput
public HiveSortLimit(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode child, org.apache.calcite.rel.RelCollation collation, org.apache.calcite.rex.RexNode offset, org.apache.calcite.rex.RexNode fetch)
public static HiveSortLimit create(org.apache.calcite.rel.RelNode input, org.apache.calcite.rel.RelCollation collation, org.apache.calcite.rex.RexNode offset, org.apache.calcite.rex.RexNode fetch)
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 fetchpublic HiveSortLimit copy(org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode newInput, org.apache.calcite.rel.RelCollation newCollation, org.apache.calcite.rex.RexNode offset, org.apache.calcite.rex.RexNode fetch)
copy
in class org.apache.calcite.rel.core.Sort
public org.apache.calcite.rex.RexNode getFetchExpr()
public org.apache.calcite.rex.RexNode getOffsetExpr()
public void setInputRefToCallMap(com.google.common.collect.ImmutableMap<Integer,org.apache.calcite.rex.RexNode> refToCall)
public void implement(HiveRelNode.Implementor implementor)
implement
in interface HiveRelNode
public boolean isRuleCreated()
public void setRuleCreated(boolean ruleCreated)
public org.apache.calcite.rel.RelNode accept(org.apache.calcite.rel.RelShuttle shuttle)
accept
in interface org.apache.calcite.rel.RelNode
accept
in class org.apache.calcite.rel.AbstractRelNode
Copyright © 2022 The Apache Software Foundation. All rights reserved.