Class Smalls

  • public class Smalls
    extends java.lang.Object
    Holder for various classes and functions used in tests as user-defined functions and so forth.
    • Field Detail


        public static final java.lang.reflect.Method GENERATE_STRINGS_METHOD

        public static final java.lang.reflect.Method MAZE_METHOD
      • MAZE2_METHOD

        public static final java.lang.reflect.Method MAZE2_METHOD
      • MAZE3_METHOD

        public static final java.lang.reflect.Method MAZE3_METHOD

        public static final java.lang.reflect.Method MULTIPLICATION_TABLE_METHOD

        public static final java.lang.reflect.Method FIBONACCI_TABLE_METHOD

        public static final java.lang.reflect.Method FIBONACCI2_TABLE_METHOD

        public static final java.lang.reflect.Method VIEW_METHOD
      • STR_METHOD

        public static final java.lang.reflect.Method STR_METHOD

        public static final java.lang.reflect.Method STRING_UNION_METHOD

        public static final java.lang.reflect.Method PROCESS_CURSOR_METHOD

        public static final java.lang.reflect.Method PROCESS_CURSORS_METHOD
    • Constructor Detail

      • Smalls

        private Smalls()
    • Method Detail

      • oneThreePlus

        private static org.apache.calcite.schema.QueryableTable oneThreePlus​(java.lang.String s)
      • stringUnion

        public static <T> org.apache.calcite.linq4j.Queryable<T> stringUnion​(org.apache.calcite.linq4j.Queryable<T> q0,
                                                                             org.apache.calcite.linq4j.Queryable<T> q1)
      • generateStrings

        public static org.apache.calcite.schema.QueryableTable generateStrings​(java.lang.Integer count)
        A function that generates a table that generates a sequence of Smalls.IntString values.
      • multiplicationTable

        public static org.apache.calcite.schema.QueryableTable multiplicationTable​(int ncol,
                                                                                   int nrow,
                                                                                   java.lang.Integer offset)
        A function that generates multiplication table of ncol columns x nrow rows.
      • fibonacciTable

        public static org.apache.calcite.schema.ScannableTable fibonacciTable()
        A function that generates the Fibonacci sequence. Interesting because it has one column and no arguments.
      • fibonacciTableWithLimit

        public static org.apache.calcite.schema.ScannableTable fibonacciTableWithLimit​(long limit)
        A function that generates the Fibonacci sequence. Interesting because it has one column and no arguments.
      • processCursor

        public static org.apache.calcite.schema.QueryableTable processCursor​(int offset,
                                                                             org.apache.calcite.linq4j.Enumerable<java.lang.Object[]> a)
        A function that adds a number to the first column of input cursor
      • processCursors

        public static org.apache.calcite.schema.QueryableTable processCursors​(int offset,
                                                                              org.apache.calcite.linq4j.Enumerable<java.lang.Object[]> a,
                                                                              org.apache.calcite.linq4j.Enumerable<Smalls.IntString> b)
        A function that sums the second column of first input cursor, second column of first input and the given int.
      • view

        public static org.apache.calcite.schema.TranslatableTable view​(java.lang.String s)
      • strView

        public static org.apache.calcite.schema.TranslatableTable strView​(java.lang.String s)
      • str

        public static org.apache.calcite.schema.TranslatableTable str​(java.lang.Object o,
                                                                      java.lang.Object p)