Class AbstractQueryableTable

All Implemented Interfaces:
QueryableTable, Table, Wrapper
Direct Known Subclasses:
CassandraTable, ElasticsearchTable, GeodeTable, InnodbTable, JdbcTable, ListTransientTable, MockCatalogReader.MockDynamicTable, MongoTable, Smalls.SimpleTable, ViewTable

public abstract class AbstractQueryableTable extends AbstractTable implements QueryableTable
Abstract base class for implementing Table.
  • Field Details

    • elementType

      protected final Type elementType
  • Constructor Details

    • AbstractQueryableTable

      protected AbstractQueryableTable(Type elementType)
  • Method Details

    • getElementType

      public Type getElementType()
      Description copied from interface: QueryableTable
      Returns the element type of the collection that will implement this table.
      Specified by:
      getElementType in interface QueryableTable
    • getExpression

      public Expression getExpression(SchemaPlus schema, String tableName, Class clazz)
      Description copied from interface: QueryableTable
      Generates an expression with which this table can be referenced in generated code.
      Specified by:
      getExpression in interface QueryableTable
      schema - Schema
      tableName - Table name (unique within schema)
      clazz - The desired collection class; for example Queryable.