Class PigProject

All Implemented Interfaces:
Cloneable, PigRel, RelOptNode, Hintable, RelNode

public class PigProject extends Project implements PigRel
Implementation of Project in Pig calling convention.
  • Constructor Details

  • Method Details

    • copy

      public Project copy(RelTraitSet traitSet, RelNode input, List<RexNode> projects, RelDataType rowType)
      Description copied from class: Project
      Copies a project.
      Specified by:
      copy in class Project
      Parameters:
      traitSet - Traits
      input - Input
      projects - Project expressions
      rowType - Output row type
      Returns:
      New Project if any parameter differs from the value of this Project, or just this if all the parameters are the same
      See Also:
    • implement

      public void implement(PigRel.Implementor implementor)
      Description copied from interface: PigRel
      Converts this node to a Pig Latin statement.
      Specified by:
      implement in interface PigRel
    • getTable

      public RelOptTable getTable()
      Override this method so it looks down the tree to find the table this node is acting on.
      Specified by:
      getTable in interface RelNode
      Overrides:
      getTable in class AbstractRelNode
      Returns:
      If this relational expression represents an access to a table, returns that table, otherwise returns null