Package org.apache.calcite.schema
Interface QueryableTable
- All Superinterfaces:
Table
- All Known Subinterfaces:
ModifiableTable
- All Known Implementing Classes:
AbstractModifiableTable
,AbstractQueryableTable
,ArrowTable
,CassandraTable
,CsvTranslatableTable
,CsvTranslatableTable
,ElasticsearchTable
,GeodeTable
,InnodbTable
,JdbcTable
,ListTransientTable
,MaterializedViewTable
,MockCatalogReader.MockDynamicTable
,MockCatalogReader.MockModifiableViewRelOptTable.MockModifiableViewTable
,ModifiableViewTable
,MongoTable
,Smalls.SimpleTable
,ViewTable
-
Method Summary
Modifier and TypeMethodDescription<T> Queryable<T>
asQueryable
(QueryProvider queryProvider, SchemaPlus schema, String tableName) Converts this table into aQueryable
.Returns the element type of the collection that will implement this table.getExpression
(SchemaPlus schema, String tableName, Class clazz) Generates an expression with which this table can be referenced in generated code.Methods inherited from interface org.apache.calcite.schema.Table
getJdbcTableType, getRowType, getStatistic, isRolledUp, rolledUpColumnValidInsideAgg
-
Method Details
-
asQueryable
Converts this table into aQueryable
. -
getElementType
Type getElementType()Returns the element type of the collection that will implement this table. -
getExpression
Generates an expression with which this table can be referenced in generated code.- Parameters:
schema
- SchematableName
- Table name (unique within schema)clazz
- The desired collection class; for exampleQueryable
.
-