private static class ReflectiveSchema.ReflectiveTable extends AbstractQueryableTable implements Table, ScannableTable
| Modifier and Type | Field and Description |
|---|---|
private Type |
elementType |
private Enumerable |
enumerable |
| Constructor and Description |
|---|
ReflectiveTable(Type elementType,
Enumerable enumerable) |
| Modifier and Type | Method and Description |
|---|---|
<T> Queryable<T> |
asQueryable(QueryProvider queryProvider,
SchemaPlus schema,
String tableName)
Converts this table into a
Queryable. |
RelDataType |
getRowType(RelDataTypeFactory typeFactory)
Returns this table's row type.
|
Statistic |
getStatistic()
Returns a provider of statistics about this table.
|
Enumerable<Object[]> |
scan(DataContext root)
Returns an enumerator over the rows in this Table.
|
getElementType, getExpressiongetJdbcTableType, isRolledUp, rolledUpColumnValidInsideAgg, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetJdbcTableType, isRolledUp, rolledUpColumnValidInsideAggprivate final Type elementType
private final Enumerable enumerable
ReflectiveTable(Type elementType, Enumerable enumerable)
public RelDataType getRowType(RelDataTypeFactory typeFactory)
TableThis 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.
getRowType in interface TabletypeFactory - Type factory with which to create the typepublic Statistic getStatistic()
TablegetStatistic in interface TablegetStatistic in class AbstractTablepublic Enumerable<Object[]> scan(DataContext root)
ScannableTablescan in interface ScannableTablepublic <T> Queryable<T> asQueryable(QueryProvider queryProvider, SchemaPlus schema, String tableName)
QueryableTableQueryable.asQueryable in interface QueryableTableCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.