public class SecondaryKeyOptimizerSpark extends SparkOpPlanVisitor implements SecondaryKeyOptimizer
mCurrentWalker, mPlan| Constructor and Description |
|---|
SecondaryKeyOptimizerSpark(SparkOperPlan plan) |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumDistinctChanged() |
int |
getNumSortRemoved() |
int |
getNumUseSecondaryKey() |
void |
visitSparkOp(SparkOperator sparkOperator)
Secondary key sort optimization is enabled in group + foreach nested situation, like TestAccumlator#testAccumWithSort
After calling SecondaryKeyOptimizerUtil.applySecondaryKeySort, the POSort in the POForeach will be deleted in the spark plan.
|
getPlan, popWalker, pushWalker, visitpublic SecondaryKeyOptimizerSpark(SparkOperPlan plan)
public void visitSparkOp(SparkOperator sparkOperator) throws VisitorException
visitSparkOp in class SparkOpPlanVisitorsparkOperator - VisitorExceptionpublic int getNumSortRemoved()
getNumSortRemoved in interface SecondaryKeyOptimizerpublic int getNumDistinctChanged()
getNumDistinctChanged in interface SecondaryKeyOptimizerpublic int getNumUseSecondaryKey()
getNumUseSecondaryKey in interface SecondaryKeyOptimizerCopyright © 2007-2017 The Apache Software Foundation