Class CsvSchema

java.lang.Object
org.apache.calcite.schema.impl.AbstractSchema
org.apache.calcite.adapter.csv.CsvSchema
All Implemented Interfaces:
Schema

public class CsvSchema extends AbstractSchema
Schema mapped onto a directory of CSV files. Each table in the schema is a CSV file in that directory.
  • Constructor Details

    • CsvSchema

      public CsvSchema(File directoryFile, CsvTable.Flavor flavor)
      Creates a CSV schema.
      Parameters:
      directoryFile - Directory that holds .csv files
      flavor - Whether to instantiate flavor tables that undergo query optimization
  • Method Details