Class CsvSchemaFactory

java.lang.Object
org.apache.calcite.adapter.csv.CsvSchemaFactory
All Implemented Interfaces:
SchemaFactory

public class CsvSchemaFactory extends Object implements SchemaFactory
Factory that creates a CsvSchema.

Allows a custom schema to be included in a model.json file.

  • Field Details

    • INSTANCE

      public static final CsvSchemaFactory INSTANCE
      Public singleton, per factory contract.
  • Method Details

    • create

      public Schema create(SchemaPlus parentSchema, String name, Map<String,Object> operand)
      Description copied from interface: SchemaFactory
      Creates a Schema.
      Specified by:
      create in interface SchemaFactory
      Parameters:
      parentSchema - Parent schema
      name - Name of this schema
      operand - The "operand" JSON property
      Returns:
      Created schema