Package org.apache.calcite.adapter.kafka
Class KafkaTableFactory
java.lang.Object
org.apache.calcite.adapter.kafka.KafkaTableFactory
- All Implemented Interfaces:
TableFactory<KafkaStreamTable>
Implementation of
TableFactory
for Apache Kafka. Currently an Apache Kafka
topic is mapping to a STREAM table.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(SchemaPlus schema, String name, Map<String, Object> operand, @Nullable RelDataType rowType) Creates a Table.
-
Constructor Details
-
KafkaTableFactory
public KafkaTableFactory()
-
-
Method Details
-
create
public KafkaStreamTable 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<KafkaStreamTable>
- 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
-