Class ProductsTemporalTable
java.lang.Object
org.apache.calcite.test.schemata.orderstream.ProductsTemporalTable
- All Implemented Interfaces:
Table,TemporalTable
Table representing the PRODUCTS_TEMPORAL temporal table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionType of table.getRowType(RelDataTypeFactory typeFactory) Returns this table's row type.Returns a provider of statistics about this table.Returns the name of the system column that contains the end effective time of each row.Returns the name of the system column that contains the start effective time of each row.booleanisRolledUp(String column) Determines whether the givencolumnhas been rolled up.booleanrolledUpColumnValidInsideAgg(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.
-
Constructor Details
-
ProductsTemporalTable
public ProductsTemporalTable()
-
-
Method Details
-
getSysStartFieldName
Description copied from interface:TemporalTableReturns the name of the system column that contains the start effective time of each row.- Specified by:
getSysStartFieldNamein interfaceTemporalTable
-
getSysEndFieldName
Description copied from interface:TemporalTableReturns the name of the system column that contains the end effective time of each row.- Specified by:
getSysEndFieldNamein interfaceTemporalTable
-
getRowType
Description copied from interface:TableReturns 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.
- Specified by:
getRowTypein interfaceTable- Parameters:
typeFactory- Type factory with which to create the type- Returns:
- Row type
-
getStatistic
Description copied from interface:TableReturns a provider of statistics about this table.- Specified by:
getStatisticin interfaceTable
-
getJdbcTableType
Description copied from interface:TableType of table.- Specified by:
getJdbcTableTypein interfaceTable
-
isRolledUp
Description copied from interface:TableDetermines whether the givencolumnhas been rolled up.- Specified by:
isRolledUpin interfaceTable
-
rolledUpColumnValidInsideAgg
public boolean rolledUpColumnValidInsideAgg(String column, SqlCall call, @Nullable SqlNode parent, @Nullable CalciteConnectionConfig config) Description copied from interface:TableDetermines whether the given rolled up column can be used inside the given aggregate function. You can assume thatisRolledUp(column)istrue.- Specified by:
rolledUpColumnValidInsideAggin interfaceTable- Parameters:
column- The column name for whichisRolledUpis truecall- The aggregate callparent- Parent node ofcallin theSqlNodetreeconfig- Config settings. May be null- Returns:
- true iff the given aggregate call is valid
-