Interface OrderedRel

All Superinterfaces:
Cloneable, DrillRelNode, org.apache.calcite.rel.RelNode, org.apache.calcite.plan.RelOptNode
All Known Implementing Classes:
DrillSortRel, DrillSortRelBase, PluginSortRel, SortPrel, TopNPrel

public interface OrderedRel extends DrillRelNode
Class implementing OrderedPrel interface guarantees to provide ordered output on certain columns. TopNPrel and SortPrel base classes which implement this interface.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.calcite.rel.RelNode

    org.apache.calcite.rel.RelNode.Context
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    A method to return if this relational node can be dropped during optimization process.
    org.apache.calcite.rel.RelCollation
    A method to return ordering columns of the result.
    org.apache.calcite.rex.RexNode
    Fetch value represented in RexNode.
    org.apache.calcite.rex.RexNode
    Offset value represented in RexNode.

    Methods inherited from interface org.apache.calcite.rel.RelNode

    accept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeSelfCost, copy, deepEquals, deepHashCode, estimateRowCount, explain, explain, fieldIsNullable, getConvention, getCorrelVariable, getDigest, getExpectedInputRowType, getInput, getInputs, getRelDigest, getRelTypeName, getRowType, getTable, getVariablesSet, isEnforcer, isValid, metadata, onRegister, recomputeDigest, register, replaceInput

    Methods inherited from interface org.apache.calcite.plan.RelOptNode

    getCluster, getDescription, getId, getTraitSet
  • Method Details

    • getCollation

      org.apache.calcite.rel.RelCollation getCollation()
      A method to return ordering columns of the result.
      Returns:
      Collation order of the output.
    • getOffset

      org.apache.calcite.rex.RexNode getOffset()
      Offset value represented in RexNode.
      Returns:
      offset.
    • getFetch

      org.apache.calcite.rex.RexNode getFetch()
      Fetch value represented in RexNode.
      Returns:
      fetch
    • canBeDropped

      boolean canBeDropped()
      A method to return if this relational node can be dropped during optimization process.
      Returns:
      true if this node can be dropped, false otherwise.