Class MongoToEnumerableConverter

    • 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')".
        Parameters:
        values - List of values
        clazz - Type of values
        Returns:
        expression
      • constantList

        private static <T> java.util.List<Expression> constantList​(java.util.List<T> values)
        E.g. constantList("x", "y") returns {ConstantExpression("x"), ConstantExpression("y")}.