Package org.apache.calcite.adapter.java
Class AbstractQueryableTable
- java.lang.Object
-
- org.apache.calcite.schema.impl.AbstractTable
-
- org.apache.calcite.adapter.java.AbstractQueryableTable
-
- All Implemented Interfaces:
QueryableTable
,Table
,Wrapper
- Direct Known Subclasses:
ArrayTable
,CalciteMetaImpl.MetadataTable
,CassandraTable
,ElasticsearchTable
,FileTable
,GeodeTable
,JdbcTable
,ListTable
,MongoTable
,ReflectiveSchema.ReflectiveTable
,SplunkTable
,TpcdsSchema.TpcdsQueryableTable
,TpchSchema.TpchQueryableTable
,ViewTable
public abstract class AbstractQueryableTable extends AbstractTable implements QueryableTable
Abstract base class for implementingTable
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.reflect.Type
elementType
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractQueryableTable(java.lang.reflect.Type elementType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 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.QueryableTable
asQueryable
-
Methods inherited from interface org.apache.calcite.schema.Table
getJdbcTableType, getRowType, getStatistic, isRolledUp, rolledUpColumnValidInsideAgg
-
-
-
-
Method Detail
-
getElementType
public java.lang.reflect.Type getElementType()
Description copied from interface:QueryableTable
Returns the element type of the collection that will implement this table.- Specified by:
getElementType
in interfaceQueryableTable
-
getExpression
public Expression getExpression(SchemaPlus schema, java.lang.String tableName, java.lang.Class clazz)
Description copied from interface:QueryableTable
Generates an expression with which this table can be referenced in generated code.- Specified by:
getExpression
in interfaceQueryableTable
- Parameters:
schema
- SchematableName
- Table name (unique within schema)clazz
- The desired collection class; for exampleQueryable
.
-
-