Class PigTableFactory

java.lang.Object
org.apache.calcite.adapter.pig.PigTableFactory
All Implemented Interfaces:
TableFactory<PigTable>

public class PigTableFactory extends Object implements TableFactory<PigTable>
Factory that creates a PigTable.

Allows a Pig table to be included in a model.json file.

  • Constructor Details

    • PigTableFactory

      public PigTableFactory()
  • Method Details

    • create

      public PigTable 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<PigTable>
      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