Class ProductsTable
java.lang.Object
org.apache.calcite.test.schemata.orderstream.ProductsTable
- All Implemented Interfaces:
- ScannableTable,- Table
Table representing the PRODUCTS relation.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionType of table.getRowType(RelDataTypeFactory typeFactory) Returns this table's row type.Returns a provider of statistics about this table.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.Enumerable<@Nullable Object[]>scan(DataContext root) Returns an enumerator over the rows in this Table.
- 
Constructor Details- 
ProductsTable
 
- 
- 
Method Details- 
scanDescription copied from interface:ScannableTableReturns an enumerator over the rows in this Table. Each row is represented as an array of its column values.- Specified by:
- scanin interface- ScannableTable
 
- 
getRowTypeDescription 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 interface- Table
- Parameters:
- typeFactory- Type factory with which to create the type
- Returns:
- Row type
 
- 
getStatisticDescription copied from interface:TableReturns a provider of statistics about this table.- Specified by:
- getStatisticin interface- Table
 
- 
getJdbcTableTypeDescription copied from interface:TableType of table.- Specified by:
- getJdbcTableTypein interface- Table
 
- 
isRolledUpDescription copied from interface:TableDetermines whether the givencolumnhas been rolled up.- Specified by:
- isRolledUpin interface- Table
 
- 
rolledUpColumnValidInsideAggpublic 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 interface- Table
- Parameters:
- column- The column name for which- isRolledUpis true
- call- The aggregate call
- parent- Parent node of- callin the- SqlNodetree
- config- Config settings. May be null
- Returns:
- true iff the given aggregate call is valid
 
 
-