org.apache.pig.impl.plan
Class ProjectionMap.Column

java.lang.Object
  extended by org.apache.pig.impl.plan.ProjectionMap.Column
Enclosing class:
ProjectionMap

public static class ProjectionMap.Column
extends Object

A wrapper for projection map columns to contain the input number, input column. Additionally, if a cast is used, record the type of the cast


Constructor Summary
ProjectionMap.Column(Pair<Integer,Integer> inputColumn)
           
ProjectionMap.Column(Pair<Integer,Integer> inputColumn, boolean cast, byte castType)
           
 
Method Summary
 boolean cast()
          Check if the column is cast
 boolean getCast()
          Check if the column is cast
 byte getCastType()
          Get the data type of the cast
 Pair<Integer,Integer> getInputColumn()
          Get the mapped column details
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProjectionMap.Column

public ProjectionMap.Column(Pair<Integer,Integer> inputColumn)
Parameters:
inputColumn - A pair of integers representing the input number and the input column number

ProjectionMap.Column

public ProjectionMap.Column(Pair<Integer,Integer> inputColumn,
                            boolean cast,
                            byte castType)
Parameters:
inputColumn - A pair of integers representing the input number and the input column number
cast - true if the input column has a cast
castType - the data type of the cast
Method Detail

getInputColumn

public Pair<Integer,Integer> getInputColumn()
Get the mapped column details

Returns:
A pair of integers representing the input number and the input column number

getCast

public boolean getCast()
Check if the column is cast

Returns:
true if the input column has a cast; false otherwise

cast

public boolean cast()
Check if the column is cast

Returns:
true if the input column has a cast; false otherwise

getCastType

public byte getCastType()
Get the data type of the cast

Returns:
the data type of the cast

toString

public String toString()
Overrides:
toString in class Object


Copyright © ${year} The Apache Software Foundation