Class ElasticsearchToEnumerableConverter

    • Method Detail

      • copy

        public RelNode 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
      • constantArrayList

        private static <T> MethodCallExpression constantArrayList​(java.util.List<T> values,
                                                                  java.lang.Class clazz)
        E.g. constantArrayList("x", "y") returns "Arrays.asList('x', 'y')".
        Type Parameters:
        T - type of elements in the list
        Parameters:
        values - list of values
        clazz - runtime class representing each element in the list
        Returns:
        method call which creates a list
      • constantList

        private static <T> java.util.List<Expression> constantList​(java.util.List<T> values)
        E.g. constantList("x", "y") returns {ConstantExpression("x"), ConstantExpression("y")}.
        Type Parameters:
        T - type of elements inside this list
        Parameters:
        values - list of elements
        Returns:
        list of constant expressions