org.apache.pig.newplan.logical.relational
Class LogicalPlanData
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogicalPlanData
public LogicalPlanData(LogicalPlan lp)
getNumLogicalRelationOperators
public int getNumLogicalRelationOperators()
- Returns the number of
LogicalRelationalOperator
s 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