org.apache.pig.newplan.logical.relational
Class LogicalPlanData

java.lang.Object
  extended by org.apache.pig.newplan.logical.relational.LogicalPlanData

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class LogicalPlanData
extends Object

This class provides information regarding the LogicalPlan. Make sure to avoid exposing LogicalPlan itself. Only data regarding the logical plan could be exposed but none of Pig internals (plans, operators etc) should be.


Constructor Summary
LogicalPlanData(LogicalPlan lp)
           
 
Method Summary
 List<String> getLoadFuncs()
           
 int getNumLogicalRelationOperators()
          Returns the number of LogicalRelationalOperators present in the pig script.
 int getNumSinks()
           
 int getNumSources()
           
 List<String> getSinks()
           
 List<String> getSources()
           
 List<String> getStoreFuncs()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogicalPlanData

public LogicalPlanData(LogicalPlan lp)
Method Detail

getNumLogicalRelationOperators

public int getNumLogicalRelationOperators()
Returns the number of LogicalRelationalOperators present in the pig script.

Returns:
number of logical relational operators (Load, Join, Store etc)

getNumSources

public int getNumSources()
Returns:
number of Load statements in the script

getNumSinks

public int getNumSinks()
Returns:
number of Store statements in the script

getSources

public List<String> getSources()
Returns:
This method return the list of Load paths defined in the script/query.

getSinks

public List<String> getSinks()
Returns:
This method returns the list of store paths in the script/query.

getLoadFuncs

public List<String> getLoadFuncs()
Returns:
This method returns the list of LoadFunc(s) used.

getStoreFuncs

public List<String> getStoreFuncs()
Returns:
This method returns the list of StoreFunc(s) used.


Copyright © 2007-2012 The Apache Software Foundation