Class ScannableTableTest.BeatlesFilterableTable

  • All Implemented Interfaces:
    org.apache.calcite.schema.FilterableTable, org.apache.calcite.schema.Table, org.apache.calcite.schema.Wrapper
    Enclosing class:
    ScannableTableTest

    public static class ScannableTableTest.BeatlesFilterableTable
    extends org.apache.calcite.schema.impl.AbstractTable
    implements org.apache.calcite.schema.FilterableTable
    Table that returns two columns via the FilterableTable interface.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.StringBuilder buf  
      private boolean cooperative  
    • Constructor Summary

      Constructors 
      Constructor Description
      BeatlesFilterableTable​(java.lang.StringBuilder buf, boolean cooperative)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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, java.util.List<org.apache.calcite.rex.RexNode> filters)  
      • 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

      • buf

        private final java.lang.StringBuilder buf
      • cooperative

        private final boolean cooperative
    • Constructor Detail

      • BeatlesFilterableTable

        public BeatlesFilterableTable​(java.lang.StringBuilder buf,
                                      boolean cooperative)
    • Method Detail

      • 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,
                                                                             java.util.List<org.apache.calcite.rex.RexNode> filters)
        Specified by:
        scan in interface org.apache.calcite.schema.FilterableTable