Package org.apache.calcite.schema
Interface QueryableTable
- All Superinterfaces:
Table
- All Known Subinterfaces:
ModifiableTable
- All Known Implementing Classes:
AbstractQueryableTable
,CassandraTable
,CsvTranslatableTable
,CsvTranslatableTable
,ElasticsearchTable
,GeodeTable
,JdbcTable
,ListTransientTable
,MaterializedViewTable
,ModifiableViewTable
,MongoTable
,ViewTable
public interface QueryableTable extends Table
-
Method Summary
Modifier and Type Method Description <T> Queryable<T>
asQueryable(QueryProvider queryProvider, SchemaPlus schema, String tableName)
Converts this table into aQueryable
.Type
getElementType()
Returns the element type of the collection that will implement this table.Expression
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
.
-