public abstract class AbstractTable extends java.lang.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(java.lang.String column)
Determines whether the given
column has been rolled up. |
boolean |
rolledUpColumnValidInsideAgg(java.lang.String column,
SqlCall call,
SqlNode parent,
CalciteConnectionConfig config)
Determines whether the given rolled up column can be used inside the given aggregate function.
|
<C> C |
unwrap(java.lang.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, wait
getRowType
public Statistic getStatistic()
Table
getStatistic
in interface Table
public Schema.TableType getJdbcTableType()
Table
getJdbcTableType
in interface Table
public <C> C unwrap(java.lang.Class<C> aClass)
Wrapper
public boolean isRolledUp(java.lang.String column)
Table
column
has been rolled up.isRolledUp
in interface Table
public boolean rolledUpColumnValidInsideAgg(java.lang.String column, SqlCall call, SqlNode parent, CalciteConnectionConfig config)
Table
isRolledUp(column)
is true
.rolledUpColumnValidInsideAgg
in interface Table
column
- 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–2019 The Apache Software Foundation. All rights reserved.