Class PigSchemaFactory

java.lang.Object
org.apache.calcite.adapter.pig.PigSchemaFactory
All Implemented Interfaces:
SchemaFactory

public class PigSchemaFactory extends Object implements SchemaFactory
Factory that creates a PigSchema.

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

  • Field Details

    • INSTANCE

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