Package org.apache.calcite.adapter.csv
Class CsvTableFactory
- java.lang.Object
-
- org.apache.calcite.adapter.csv.CsvTableFactory
-
- All Implemented Interfaces:
TableFactory<CsvTable>
public class CsvTableFactory extends java.lang.Object implements TableFactory<CsvTable>
Factory that creates aCsvTranslatableTable
.Allows a CSV table to be included in a model.json file, even in a schema that is not based upon
CsvSchema
.
-
-
Constructor Summary
Constructors Constructor Description CsvTableFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CsvTable
create(SchemaPlus schema, java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> operand, RelDataType rowType)
Creates a Table.
-
-
-
Method Detail
-
create
public CsvTable create(SchemaPlus schema, java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> operand, 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.
-
-