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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isRolledUp
(String column) Determines whether the givencolumn
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.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, getStatistic
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.calcite.schema.Table
getJdbcTableType, getRowType, getStatistic
-
Constructor Details
-
OrdersTable
-
-
Method Details
-
scan
Description copied from interface:ScannableTable
Returns an enumerator over the rows in this Table. Each row is represented as an array of its column values.- Specified by:
scan
in interfaceScannableTable
-
stream
Description copied from interface:StreamableTable
Returns an enumerator over the rows in this Table. Each row is represented as an array of its column values.- Specified by:
stream
in interfaceStreamableTable
-
isRolledUp
Description copied from interface:Table
Determines whether the givencolumn
has been rolled up.- Specified by:
isRolledUp
in interfaceTable
- Overrides:
isRolledUp
in classBaseOrderStreamTable
-
rolledUpColumnValidInsideAgg
public boolean rolledUpColumnValidInsideAgg(String column, SqlCall call, @Nullable SqlNode parent, @Nullable CalciteConnectionConfig config) Description copied from interface:Table
Determines whether the given rolled up column can be used inside the given aggregate function. You can assume thatisRolledUp(column)
istrue
.- Specified by:
rolledUpColumnValidInsideAgg
in interfaceTable
- Overrides:
rolledUpColumnValidInsideAgg
in classBaseOrderStreamTable
- Parameters:
column
- The column name for whichisRolledUp
is truecall
- The aggregate callparent
- Parent node ofcall
in theSqlNode
treeconfig
- Config settings. May be null- Returns:
- true iff the given aggregate call is valid
-