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, getChildExps, getCollation, getCollationList
childrenAccept, deriveRowType, estimateRowCount, getInput, getInputs, replaceInput
collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, explain, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraitSet, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, sole, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeSelfCost, computeSelfCost, copy, estimateRowCount, explain, getChildExps, getCollationList, getConvention, getCorrelVariable, getExpectedInputRowType, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getTable, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, 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 © 2021 The Apache Software Foundation. All rights reserved.