Package org.apache.calcite.jdbc
Class CalciteMetaImpl.MetadataTable<E>
- java.lang.Object
-
- org.apache.calcite.schema.impl.AbstractTable
-
- org.apache.calcite.adapter.java.AbstractQueryableTable
-
- org.apache.calcite.jdbc.CalciteMetaImpl.MetadataTable<E>
-
- Type Parameters:
E
- element type
- All Implemented Interfaces:
QueryableTable
,Table
,Wrapper
- Enclosing class:
- CalciteMetaImpl
abstract static class CalciteMetaImpl.MetadataTable<E> extends AbstractQueryableTable
Table whose contents are metadata.
-
-
Field Summary
-
Fields inherited from class org.apache.calcite.adapter.java.AbstractQueryableTable
elementType
-
-
Constructor Summary
Constructors Constructor Description MetadataTable(java.lang.Class<E> clazz)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <T> Queryable<T>
asQueryable(QueryProvider queryProvider, SchemaPlus schema, java.lang.String tableName)
Converts this table into aQueryable
.protected abstract Enumerator<E>
enumerator(CalciteMetaImpl connection)
java.lang.Class<E>
getElementType()
Returns the element type of the collection that will implement this table.Schema.TableType
getJdbcTableType()
Type of table.RelDataType
getRowType(RelDataTypeFactory typeFactory)
Returns this table's row type.-
Methods inherited from class org.apache.calcite.adapter.java.AbstractQueryableTable
getExpression
-
Methods inherited from class org.apache.calcite.schema.impl.AbstractTable
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.Table
getStatistic, isRolledUp, rolledUpColumnValidInsideAgg
-
-
-
-
Constructor Detail
-
MetadataTable
MetadataTable(java.lang.Class<E> clazz)
-
-
Method Detail
-
getRowType
public RelDataType getRowType(RelDataTypeFactory typeFactory)
Description copied from interface:Table
Returns this table's row type.This is a struct type whose fields describe the names and types of the columns in this table.
The implementer must use the type factory provided. This ensures that the type is converted into a canonical form; other equal types in the same query will use the same object.
- Parameters:
typeFactory
- Type factory with which to create the type- Returns:
- Row type
-
getJdbcTableType
public Schema.TableType getJdbcTableType()
Description copied from interface:Table
Type of table.- Specified by:
getJdbcTableType
in interfaceTable
- Overrides:
getJdbcTableType
in classAbstractTable
-
getElementType
public java.lang.Class<E> getElementType()
Description copied from interface:QueryableTable
Returns the element type of the collection that will implement this table.- Specified by:
getElementType
in interfaceQueryableTable
- Overrides:
getElementType
in classAbstractQueryableTable
-
enumerator
protected abstract Enumerator<E> enumerator(CalciteMetaImpl connection)
-
asQueryable
public <T> Queryable<T> asQueryable(QueryProvider queryProvider, SchemaPlus schema, java.lang.String tableName)
Description copied from interface:QueryableTable
Converts this table into aQueryable
.
-
-