Package org.apache.calcite.schema
Interface QueryableTable
-
- All Superinterfaces:
Table
- All Known Subinterfaces:
ModifiableTable
- All Known Implementing Classes:
AbstractQueryableTable
,ArrayTable
,CalciteMetaImpl.MetadataTable
,CassandraTable
,CsvTranslatableTable
,ElasticsearchTable
,FileTable
,GeodeTable
,JdbcTable
,ListTable
,MaterializedViewTable
,ModifiableViewTable
,MongoTable
,ReflectiveSchema.FieldTable
,ReflectiveSchema.ReflectiveTable
,SplunkTable
,SqlCreateMaterializedView.MaterializedViewTable
,SqlCreateTable.AbstractModifiableTable
,SqlCreateTable.MutableArrayTable
,TpcdsSchema.TpcdsQueryableTable
,TpchSchema.TpchQueryableTable
,ViewTable
public interface QueryableTable extends Table
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Queryable<T>
asQueryable(QueryProvider queryProvider, SchemaPlus schema, java.lang.String tableName)
Converts this table into aQueryable
.java.lang.reflect.Type
getElementType()
Returns the element type of the collection that will implement this table.Expression
getExpression(SchemaPlus schema, java.lang.String tableName, java.lang.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 Detail
-
asQueryable
<T> Queryable<T> asQueryable(QueryProvider queryProvider, SchemaPlus schema, java.lang.String tableName)
Converts this table into aQueryable
.
-
getElementType
java.lang.reflect.Type getElementType()
Returns the element type of the collection that will implement this table.
-
getExpression
Expression getExpression(SchemaPlus schema, java.lang.String tableName, java.lang.Class clazz)
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
.
-
-