Class EnumerableInterpretable

    • Field Detail

      • BINDABLE_CACHE

        private static final com.google.common.cache.Cache<java.lang.String,​Bindable> BINDABLE_CACHE
        The cache storing Bindable objects, instantiated via dynamically generated Java classes.

        It allows to re-use Bindable objects for queries appearing relatively often. It is used to avoid the cost of compiling and generating a new class and also instantiating the object.

    • Constructor Detail

      • EnumerableInterpretable

        protected EnumerableInterpretable​(RelOptCluster cluster,
                                          RelNode input)
    • Method Detail

      • copy

        public EnumerableInterpretable copy​(RelTraitSet traitSet,
                                            java.util.List<RelNode> inputs)
        Description copied from interface: RelNode
        Creates a copy of this relational expression, perhaps changing traits and inputs.

        Sub-classes with other important attributes are encouraged to create variants of this method with more parameters.

        Specified by:
        copy in interface RelNode
        Overrides:
        copy in class AbstractRelNode
        Parameters:
        traitSet - Trait set
        inputs - Inputs
        Returns:
        Copy of this relational expression, substituting traits and inputs
      • getBindable

        static Bindable getBindable​(ClassDeclaration expr,
                                    java.lang.String s,
                                    int fieldCount)
                             throws org.codehaus.commons.compiler.CompileException,
                                    java.io.IOException,
                                    java.util.concurrent.ExecutionException
        Throws:
        org.codehaus.commons.compiler.CompileException
        java.io.IOException
        java.util.concurrent.ExecutionException
      • box

        static ArrayBindable box​(Bindable bindable)
        Converts a bindable over scalar values into an array bindable, with each row as an array of 1 element.