Class StreamTest.OrdersTable

  • All Implemented Interfaces:
    org.apache.calcite.schema.ScannableTable, org.apache.calcite.schema.StreamableTable, org.apache.calcite.schema.Table
    Enclosing class:
    StreamTest

    public static class StreamTest.OrdersTable
    extends StreamTest.BaseOrderStreamTable
    implements org.apache.calcite.schema.StreamableTable
    Table representing the ORDERS stream.
    • Constructor Summary

      Constructors 
      Constructor Description
      OrdersTable​(com.google.common.collect.ImmutableList<java.lang.Object[]> rows)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isRolledUp​(java.lang.String column)  
      boolean rolledUpColumnValidInsideAgg​(java.lang.String column, org.apache.calcite.sql.SqlCall call, org.apache.calcite.sql.SqlNode parent, org.apache.calcite.config.CalciteConnectionConfig config)  
      org.apache.calcite.linq4j.Enumerable<java.lang.Object[]> scan​(org.apache.calcite.DataContext root)  
      org.apache.calcite.schema.Table stream()  
      • 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, getRowType, getStatistic
    • Field Detail

      • rows

        private final com.google.common.collect.ImmutableList<java.lang.Object[]> rows
    • Constructor Detail

      • OrdersTable

        public OrdersTable​(com.google.common.collect.ImmutableList<java.lang.Object[]> rows)
    • Method Detail

      • 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
      • stream

        public org.apache.calcite.schema.Table stream()
        Specified by:
        stream in interface org.apache.calcite.schema.StreamableTable
      • isRolledUp

        public boolean isRolledUp​(java.lang.String column)
        Specified by:
        isRolledUp in interface org.apache.calcite.schema.Table
        Overrides:
        isRolledUp in class StreamTest.BaseOrderStreamTable
      • rolledUpColumnValidInsideAgg

        public boolean rolledUpColumnValidInsideAgg​(java.lang.String column,
                                                    org.apache.calcite.sql.SqlCall call,
                                                    org.apache.calcite.sql.SqlNode parent,
                                                    org.apache.calcite.config.CalciteConnectionConfig config)
        Specified by:
        rolledUpColumnValidInsideAgg in interface org.apache.calcite.schema.Table
        Overrides:
        rolledUpColumnValidInsideAgg in class StreamTest.BaseOrderStreamTable