Class OrdersTable
java.lang.Object
org.apache.calcite.test.schemata.orderstream.BaseOrderStreamTable
org.apache.calcite.test.schemata.orderstream.OrdersTable
- All Implemented Interfaces:
ScannableTable,StreamableTable,Table
Table representing the ORDERS stream.
-
Field Summary
Fields inherited from class org.apache.calcite.test.schemata.orderstream.BaseOrderStreamTable
protoRowType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisRolledUp(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.stream()Returns an enumerator over the rows in this Table.Methods inherited from class org.apache.calcite.test.schemata.orderstream.BaseOrderStreamTable
getJdbcTableType, getRowType, getStatisticMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.calcite.schema.Table
getJdbcTableType, getRowType, getStatistic
-
Constructor Details
-
OrdersTable
-
-
Method Details
-
scan
Description 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 interfaceScannableTable
-
stream
Description copied from interface:StreamableTableReturns an enumerator over the rows in this Table. Each row is represented as an array of its column values.- Specified by:
streamin interfaceStreamableTable
-
isRolledUp
Description copied from interface:TableDetermines whether the givencolumnhas been rolled up.- Specified by:
isRolledUpin interfaceTable- Overrides:
isRolledUpin classBaseOrderStreamTable
-
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- Overrides:
rolledUpColumnValidInsideAggin classBaseOrderStreamTable- 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
-