Class PigToEnumerableConverter

All Implemented Interfaces:
Cloneable, EnumerableRel, RelOptNode, Converter, PhysicalNode, RelNode

public class PigToEnumerableConverter extends ConverterImpl implements EnumerableRel
Relational expression representing a scan of a table in a Pig data source.
  • Constructor Details

    • PigToEnumerableConverter

      protected PigToEnumerableConverter(RelOptCluster cluster, RelTraitSet traits, RelNode input)
      Creates a PigToEnumerableConverter.
  • Method Details

    • copy

      public RelNode copy(RelTraitSet traitSet, List<RelNode> inputs)
      Description copied from interface: RelNode
      Creates a copy of this relational expression, perhaps changing traits and inputs.

      Sub-classes with other important attributes are encouraged to create variants of this method with more parameters.

      Specified by:
      copy in interface RelNode
      Overrides:
      copy in class AbstractRelNode
      Parameters:
      traitSet - Trait set
      inputs - Inputs
      Returns:
      Copy of this relational expression, substituting traits and inputs
    • implement

      Creates a plan for this expression according to a calling convention.

      This implementation does not actually execute the associated Pig Latin script and return results. Instead it returns an empty EnumerableRel.Result in order to allow for testing and verification of every step of query processing up to actual physical execution and result verification.

      Next step is to invoke Pig from here, likely in local mode, have it store results in a predefined file so they can be read here and returned as a Result object.

      Specified by:
      implement in interface EnumerableRel
      Parameters:
      implementor - Implementor
      pref - Preferred representation for rows in result expression
      Returns:
      Plan for this expression according to a calling convention