Class FileSchemaFactory

java.lang.Object
org.apache.calcite.adapter.file.FileSchemaFactory
All Implemented Interfaces:
SchemaFactory

public class FileSchemaFactory extends Object implements SchemaFactory
Factory that creates a FileSchema.

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

  • Field Details

    • INSTANCE

      public static final FileSchemaFactory 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