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, visit
public SecondaryKeyOptimizerSpark(SparkOperPlan plan)
public void visitSparkOp(SparkOperator sparkOperator) throws VisitorException
visitSparkOp
in class SparkOpPlanVisitor
sparkOperator
- VisitorException
public int getNumSortRemoved()
getNumSortRemoved
in interface SecondaryKeyOptimizer
public int getNumDistinctChanged()
getNumDistinctChanged
in interface SecondaryKeyOptimizer
public int getNumUseSecondaryKey()
getNumUseSecondaryKey
in interface SecondaryKeyOptimizer
Copyright © 2007-2017 The Apache Software Foundation