public class OptimizerUtils extends Object
Constructor and Description |
---|
OptimizerUtils() |
Modifier and Type | Method and Description |
---|---|
static LOGenerate |
findGenerate(LOForEach foreach)
Find generate op from the foreach operator.
|
static boolean |
hasFlatten(LOForEach foreach)
Helper method to find if a given LOForEach instance contains any flatten fields.
|
static boolean |
hasFlatten(LOGenerate gen)
Check if a given LOGenerate operator has any flatten fields.
|
static boolean |
planHasNonDeterministicUdf(LogicalExpressionPlan filterPlan)
Helper method to determine if the logical expression plan for a Filter contains
non-deterministic operations and should therefore be treated extra carefully
during optimization.
|
public static LOGenerate findGenerate(LOForEach foreach)
foreach
- the LOForEach instancepublic static boolean hasFlatten(LOGenerate gen)
gen
- the given LOGenerate instancepublic static boolean hasFlatten(LOForEach foreach)
foreach
- foreach the LOForEach instancepublic static boolean planHasNonDeterministicUdf(LogicalExpressionPlan filterPlan) throws FrontendException
filterPlan
- FrontendException
Copyright © 2007-2017 The Apache Software Foundation