Class Sort

All Implemented Interfaces:
Cloneable, RelOptNode, RelNode
Direct Known Subclasses:
Bindables.BindableSort, CassandraSort, ElasticsearchSort, EnumerableSort, GeodeSort, JdbcRules.JdbcSort, LogicalSort, MongoSort

public abstract class Sort
extends SingleRel
Relational expression that imposes a particular sort order on its input without otherwise changing its content.
  • Field Details

  • Constructor Details

    • Sort

      public Sort​(RelOptCluster cluster, RelTraitSet traits, RelNode child, RelCollation collation)
      Creates a Sort.
      Parameters:
      cluster - Cluster this relational expression belongs to
      traits - Traits
      child - input relational expression
      collation - array of sort specifications
    • Sort

      public Sort​(RelOptCluster cluster, RelTraitSet traits, RelNode child, RelCollation collation, RexNode offset, RexNode fetch)
      Creates a Sort.
      Parameters:
      cluster - Cluster this relational expression belongs to
      traits - Traits
      child - input relational expression
      collation - array of sort specifications
      offset - Expression for number of rows to discard before returning first row
      fetch - Expression for number of rows to fetch
    • Sort

      public Sort​(RelInput input)
      Creates a Sort by parsing serialized output.
  • Method Details