public abstract class AbstractTable extends Object implements Table, Wrapper
Table.
Sub-classes should override isRolledUp(java.lang.String) and
Table.rolledUpColumnValidInsideAgg(String, SqlCall, SqlNode, CalciteConnectionConfig)
if their table can potentially contain rolled up values. This information is
used by the validator to check for illegal uses of these columns.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTable() |
| Modifier and Type | Method and Description |
|---|---|
Schema.TableType |
getJdbcTableType()
Type of table.
|
Statistic |
getStatistic()
Returns a provider of statistics about this table.
|
boolean |
isRolledUp(String column)
Determines whether the given
column has been rolled up. |
boolean |
rolledUpColumnValidInsideAgg(String column,
SqlCall call,
@Nullable SqlNode parent,
@Nullable CalciteConnectionConfig config)
Determines whether the given rolled up column can be used inside the given aggregate function.
|
<C> C |
unwrap(Class<C> aClass)
Finds an instance of an interface implemented by this object,
or returns null if this object does not support that interface.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRowTypemaybeUnwrap, unwrapOrThrowpublic Statistic getStatistic()
TablegetStatistic in interface Tablepublic Schema.TableType getJdbcTableType()
TablegetJdbcTableType in interface Tablepublic <C> C unwrap(Class<C> aClass)
Wrapperpublic boolean isRolledUp(String column)
Tablecolumn has been rolled up.isRolledUp in interface Tablepublic boolean rolledUpColumnValidInsideAgg(String column, SqlCall call, @Nullable SqlNode parent, @Nullable CalciteConnectionConfig config)
TableisRolledUp(column) is true.rolledUpColumnValidInsideAgg in interface Tablecolumn - The column name for which isRolledUp is truecall - The aggregate callparent - Parent node of call in the SqlNode treeconfig - Config settings. May be nullCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.