Package org.apache.calcite.adapter.file
Class CsvTableFactory
java.lang.Object
org.apache.calcite.adapter.file.CsvTableFactory
- All Implemented Interfaces:
TableFactory<CsvTable>
Factory that creates a
CsvTranslatableTable
.
Allows a file-based table to be included in a model.json file, even in a
schema that is not based upon FileSchema
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(SchemaPlus schema, String name, Map<String, Object> operand, @Nullable RelDataType rowType) Creates a Table.
-
Constructor Details
-
CsvTableFactory
public CsvTableFactory()
-
-
Method Details
-
create
public CsvTable 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<CsvTable>
- 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
-