Class CsvTableFactory

java.lang.Object
org.apache.calcite.adapter.file.CsvTableFactory
All Implemented Interfaces:
TableFactory<CsvTable>

public class CsvTableFactory extends Object implements 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 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 interface TableFactory<CsvTable>
      Parameters:
      schema - Schema this table belongs to
      name - Name of this table
      operand - The "operand" JSON property
      rowType - Row type. Specified if the "columns" JSON property.
      Returns:
      created table