Class CollationConversionTest.TestRelCollationTraitDef

  • Enclosing class:
    CollationConversionTest

    private static class CollationConversionTest.TestRelCollationTraitDef
    extends org.apache.calcite.plan.RelTraitDef<org.apache.calcite.rel.RelCollation>
    Dummy collation trait def implementation for the test (uses CollationConversionTest.PhysicalSort below).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canConvert​(org.apache.calcite.plan.RelOptPlanner planner, org.apache.calcite.rel.RelCollation fromTrait, org.apache.calcite.rel.RelCollation toTrait)  
      org.apache.calcite.rel.RelNode convert​(org.apache.calcite.plan.RelOptPlanner planner, org.apache.calcite.rel.RelNode rel, org.apache.calcite.rel.RelCollation toCollation, boolean allowInfiniteCostConverters)  
      org.apache.calcite.rel.RelCollation getDefault()  
      java.lang.String getSimpleName()  
      java.lang.Class<org.apache.calcite.rel.RelCollation> getTraitClass()  
      boolean multiple()  
      • Methods inherited from class org.apache.calcite.plan.RelTraitDef

        canConvert, canonize, deregisterConverterRule, registerConverterRule
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestRelCollationTraitDef

        private TestRelCollationTraitDef()
    • Method Detail

      • getTraitClass

        public java.lang.Class<org.apache.calcite.rel.RelCollation> getTraitClass()
        Specified by:
        getTraitClass in class org.apache.calcite.plan.RelTraitDef<org.apache.calcite.rel.RelCollation>
      • getSimpleName

        public java.lang.String getSimpleName()
        Specified by:
        getSimpleName in class org.apache.calcite.plan.RelTraitDef<org.apache.calcite.rel.RelCollation>
      • multiple

        public boolean multiple()
        Overrides:
        multiple in class org.apache.calcite.plan.RelTraitDef<org.apache.calcite.rel.RelCollation>
      • getDefault

        public org.apache.calcite.rel.RelCollation getDefault()
        Specified by:
        getDefault in class org.apache.calcite.plan.RelTraitDef<org.apache.calcite.rel.RelCollation>
      • convert

        public org.apache.calcite.rel.RelNode convert​(org.apache.calcite.plan.RelOptPlanner planner,
                                                      org.apache.calcite.rel.RelNode rel,
                                                      org.apache.calcite.rel.RelCollation toCollation,
                                                      boolean allowInfiniteCostConverters)
        Specified by:
        convert in class org.apache.calcite.plan.RelTraitDef<org.apache.calcite.rel.RelCollation>
      • canConvert

        public boolean canConvert​(org.apache.calcite.plan.RelOptPlanner planner,
                                  org.apache.calcite.rel.RelCollation fromTrait,
                                  org.apache.calcite.rel.RelCollation toTrait)
        Specified by:
        canConvert in class org.apache.calcite.plan.RelTraitDef<org.apache.calcite.rel.RelCollation>