Class OrdersStreamTableFactory
java.lang.Object
org.apache.calcite.test.schemata.orderstream.OrdersStreamTableFactory
- All Implemented Interfaces:
TableFactory<Table>
Mock table that returns a stream of orders from a fixed array.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(SchemaPlus schema, String name, Map<String, Object> operand, @Nullable RelDataType rowType) Creates a Table.static com.google.common.collect.ImmutableList<Object[]>
-
Constructor Details
-
OrdersStreamTableFactory
public OrdersStreamTableFactory()
-
-
Method Details
-
create
public Table create(SchemaPlus schema, String name, Map<String, Object> operand, @Nullable RelDataType rowType) Description copied from interface:TableFactory
Creates a Table.- Specified by:
create
in interfaceTableFactory<Table>
- Parameters:
schema
- Schema this table belongs toname
- Name of this tableoperand
- The "operand" JSON propertyrowType
- Row type. Specified if the "columns" JSON property.- Returns:
- created table
-
getRowList
-