Class MetadataAggPrule.NamedRelCollation

java.lang.Object
org.apache.calcite.rel.RelCollationImpl
org.apache.drill.exec.planner.physical.MetadataAggPrule.NamedRelCollation
All Implemented Interfaces:
Comparable<org.apache.calcite.plan.RelMultipleTrait>, org.apache.calcite.plan.RelMultipleTrait, org.apache.calcite.plan.RelTrait, org.apache.calcite.rel.RelCollation
Enclosing class:
MetadataAggPrule

public static class MetadataAggPrule.NamedRelCollation extends org.apache.calcite.rel.RelCollationImpl
Implementation of RelCollationImpl with field name. Stores RelFieldCollation list and corresponding field names to be used in sort operators. Field name is required for the case of dynamic schema discovering when field is not present in rel data type at planning time.
  • Field Summary

    Fields inherited from class org.apache.calcite.rel.RelCollationImpl

    EMPTY, PRESERVE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    NamedRelCollation(List<org.apache.calcite.rel.RelFieldCollation> fieldCollations, List<String> names)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getName(int collationIndex)
     

    Methods inherited from class org.apache.calcite.rel.RelCollationImpl

    apply, compareTo, createSingleton, equal, equals, getFieldCollations, getTraitDef, hashCode, isTop, isValid, of, of, ordinals, register, satisfies, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

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

    getKeys

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

    isDefault
  • Constructor Details

    • NamedRelCollation

      protected NamedRelCollation(List<org.apache.calcite.rel.RelFieldCollation> fieldCollations, List<String> names)
  • Method Details

    • getName

      public String getName(int collationIndex)