Package org.apache.calcite.adapter.pig
Class PigTableFactory
java.lang.Object
org.apache.calcite.adapter.pig.PigTableFactory
- All Implemented Interfaces:
TableFactory<PigTable>
Factory that creates a
PigTable
.
Allows a Pig table to be included in a model.json file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(SchemaPlus schema, String name, Map<String, Object> operand, @Nullable RelDataType rowType) Creates a Table.
-
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 interfaceTableFactory<PigTable>
- Parameters:
schema
- Schema this table belongs toname
- Name of this tableoperand
- The "operand" JSON propertyrowType
- Row type. Specified if the "columns" JSON property.- Returns:
- created table
-