Class Smalls.MazeTable

  • All Implemented Interfaces:
    org.apache.calcite.schema.ScannableTable, org.apache.calcite.schema.Table, org.apache.calcite.schema.Wrapper
    Enclosing class:
    Smalls

    public static class Smalls.MazeTable
    extends org.apache.calcite.schema.impl.AbstractTable
    implements org.apache.calcite.schema.ScannableTable
    The real MazeTable may be found in example/function. This is a cut-down version to support a test.
    • Field Summary

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

      Constructors 
      Constructor Description
      MazeTable​(java.lang.String content)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.calcite.schema.ScannableTable generate​(int width, int height, int seed)  
      static org.apache.calcite.schema.ScannableTable generate2​(int width, int height, java.lang.Integer seed)  
      static org.apache.calcite.schema.ScannableTable generate3​(java.lang.String foo)  
      org.apache.calcite.rel.type.RelDataType getRowType​(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)  
      org.apache.calcite.linq4j.Enumerable<java.lang.Object[]> scan​(org.apache.calcite.DataContext root)  
      • Methods inherited from class org.apache.calcite.schema.impl.AbstractTable

        getJdbcTableType, getStatistic, isRolledUp, rolledUpColumnValidInsideAgg, unwrap
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.calcite.schema.Table

        getJdbcTableType, getStatistic, isRolledUp, rolledUpColumnValidInsideAgg
    • Field Detail

      • content

        private final java.lang.String content
    • Constructor Detail

      • MazeTable

        public MazeTable​(java.lang.String content)
    • Method Detail

      • generate

        public static org.apache.calcite.schema.ScannableTable generate​(int width,
                                                                        int height,
                                                                        int seed)
      • generate2

        public static org.apache.calcite.schema.ScannableTable generate2​(int width,
                                                                         int height,
                                                                         java.lang.Integer seed)
      • generate3

        public static org.apache.calcite.schema.ScannableTable generate3​(java.lang.String foo)
      • getRowType

        public org.apache.calcite.rel.type.RelDataType getRowType​(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
        Specified by:
        getRowType in interface org.apache.calcite.schema.Table
      • scan

        public org.apache.calcite.linq4j.Enumerable<java.lang.Object[]> scan​(org.apache.calcite.DataContext root)
        Specified by:
        scan in interface org.apache.calcite.schema.ScannableTable