org.apache.pig.newplan.logical.rules
Class OptimizerUtils
java.lang.Object
org.apache.pig.newplan.logical.rules.OptimizerUtils
public class OptimizerUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptimizerUtils
public OptimizerUtils()
findGenerate
public static LOGenerate findGenerate(LOForEach foreach)
- Find generate op from the foreach operator.
- Parameters:
foreach
- the LOForEach instance
- Returns:
- LOGenerate instance
hasFlatten
public static boolean hasFlatten(LOGenerate gen)
- Check if a given LOGenerate operator has any flatten fields.
- Parameters:
gen
- the given LOGenerate instance
- Returns:
- true if LOGenerate instance contains flatten fields, false otherwise
hasFlatten
public static boolean hasFlatten(LOForEach foreach)
- Helper method to find if a given LOForEach instance contains any flatten fields.
- Parameters:
foreach
- foreach the LOForEach instance
- Returns:
- true if LOForEach instance contains flatten fields, false otherwise
Copyright © ${year} The Apache Software Foundation