Class TraitConversionTest.SimpleDistribution

  • All Implemented Interfaces:
    org.apache.calcite.plan.RelTrait
    Enclosing class:
    TraitConversionTest

    private static class TraitConversionTest.SimpleDistribution
    extends java.lang.Object
    implements org.apache.calcite.plan.RelTrait
    Dummy distribution for test (simplified version of RelDistribution).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleDistribution​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.calcite.plan.RelTraitDef getTraitDef()  
      void register​(org.apache.calcite.plan.RelOptPlanner planner)  
      boolean satisfies​(org.apache.calcite.plan.RelTrait trait)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.apache.calcite.plan.RelTrait

        equals, hashCode
    • Field Detail

      • name

        private final java.lang.String name
    • Constructor Detail

      • SimpleDistribution

        SimpleDistribution​(java.lang.String name)
    • Method Detail

      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface org.apache.calcite.plan.RelTrait
        Overrides:
        toString in class java.lang.Object
      • getTraitDef

        public org.apache.calcite.plan.RelTraitDef getTraitDef()
        Specified by:
        getTraitDef in interface org.apache.calcite.plan.RelTrait
      • satisfies

        public boolean satisfies​(org.apache.calcite.plan.RelTrait trait)
        Specified by:
        satisfies in interface org.apache.calcite.plan.RelTrait
      • register

        public void register​(org.apache.calcite.plan.RelOptPlanner planner)
        Specified by:
        register in interface org.apache.calcite.plan.RelTrait