Class CsvStreamTableFactory

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

public class CsvStreamTableFactory extends Object implements TableFactory<CsvTable>
Factory that creates a CsvTranslatableTable.

Allows a CSV table to be included in a model.json file, even in a schema that is not based upon CsvSchema.

  • Constructor Details

    • CsvStreamTableFactory

      public CsvStreamTableFactory()
  • 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