public class SparkCompiler extends PhyPlanVisitor
mCurrentWalker, mPlan
Constructor and Description |
---|
SparkCompiler(PhysicalPlan physicalPlan,
PigContext pigContext) |
Modifier and Type | Method and Description |
---|---|
void |
compile() |
void |
connectSoftLink() |
SparkOperPlan |
getSparkPlan() |
void |
visitCollectedGroup(POCollectedGroup op) |
void |
visitCounter(POCounter op) |
void |
visitCross(POCross op) |
void |
visitDistinct(PODistinct op) |
void |
visitFilter(POFilter op) |
void |
visitFRJoin(POFRJoin op) |
void |
visitGlobalRearrange(POGlobalRearrange op) |
void |
visitLimit(POLimit op) |
void |
visitLoad(POLoad op) |
void |
visitLocalRearrange(POLocalRearrange op) |
void |
visitMergeCoGroup(POMergeCogroup poCoGrp) |
void |
visitMergeJoin(POMergeJoin joinOp) |
void |
visitNative(PONative op) |
void |
visitPackage(POPackage op) |
void |
visitPOForEach(POForEach op) |
void |
visitRank(PORank op) |
void |
visitSkewedJoin(POSkewedJoin op)
currently use regular join to replace skewedJoin
Skewed join currently works with two-table inner join.
|
void |
visitSort(POSort op) |
void |
visitSplit(POSplit op) |
void |
visitStore(POStore op) |
void |
visitStream(POStream op) |
void |
visitUnion(POUnion op) |
visit, visitAdd, visitAnd, visitBinCond, visitBroadcastSpark, visitCast, visitComparisonFunc, visitConstant, visitDemux, visitDivide, visitEqualTo, visitGreaterThan, visitGTOrEqual, visitIsNull, visitLessThan, visitLTOrEqual, visitMapLookUp, visitMod, visitMultiply, visitNegative, visitNot, visitNotEqualTo, visitOr, visitPartialAgg, visitPartitionRearrange, visitPoissonSample, visitPOOptimizedForEach, visitPreCombinerLocalRearrange, visitProject, visitRegexp, visitReservoirSample, visitSubtract, visitUserFunc
getPlan, popWalker, pushWalker, visit
public SparkCompiler(PhysicalPlan physicalPlan, PigContext pigContext)
public void compile() throws IOException, PlanException, VisitorException
IOException
PlanException
VisitorException
public SparkOperPlan getSparkPlan()
public void connectSoftLink() throws PlanException, IOException
PlanException
IOException
public void visitSplit(POSplit op) throws VisitorException
visitSplit
in class PhyPlanVisitor
VisitorException
public void visitDistinct(PODistinct op) throws VisitorException
visitDistinct
in class PhyPlanVisitor
VisitorException
public void visitLoad(POLoad op) throws VisitorException
visitLoad
in class PhyPlanVisitor
VisitorException
public void visitNative(PONative op) throws VisitorException
visitNative
in class PhyPlanVisitor
VisitorException
public void visitStore(POStore op) throws VisitorException
visitStore
in class PhyPlanVisitor
VisitorException
public void visitFilter(POFilter op) throws VisitorException
visitFilter
in class PhyPlanVisitor
VisitorException
public void visitCross(POCross op) throws VisitorException
visitCross
in class PhyPlanVisitor
VisitorException
public void visitStream(POStream op) throws VisitorException
visitStream
in class PhyPlanVisitor
VisitorException
public void visitSort(POSort op) throws VisitorException
visitSort
in class PhyPlanVisitor
VisitorException
public void visitLimit(POLimit op) throws VisitorException
visitLimit
in class PhyPlanVisitor
VisitorException
public void visitLocalRearrange(POLocalRearrange op) throws VisitorException
visitLocalRearrange
in class PhyPlanVisitor
VisitorException
public void visitCollectedGroup(POCollectedGroup op) throws VisitorException
visitCollectedGroup
in class PhyPlanVisitor
VisitorException
public void visitPOForEach(POForEach op) throws VisitorException
visitPOForEach
in class PhyPlanVisitor
VisitorException
public void visitCounter(POCounter op) throws VisitorException
visitCounter
in class PhyPlanVisitor
VisitorException
public void visitRank(PORank op) throws VisitorException
visitRank
in class PhyPlanVisitor
VisitorException
public void visitGlobalRearrange(POGlobalRearrange op) throws VisitorException
visitGlobalRearrange
in class PhyPlanVisitor
VisitorException
public void visitPackage(POPackage op) throws VisitorException
visitPackage
in class PhyPlanVisitor
VisitorException
public void visitUnion(POUnion op) throws VisitorException
visitUnion
in class PhyPlanVisitor
VisitorException
public void visitSkewedJoin(POSkewedJoin op) throws VisitorException
visitSkewedJoin
in class PhyPlanVisitor
op
- VisitorException
public void visitFRJoin(POFRJoin op) throws VisitorException
visitFRJoin
in class PhyPlanVisitor
VisitorException
public void visitMergeJoin(POMergeJoin joinOp) throws VisitorException
visitMergeJoin
in class PhyPlanVisitor
VisitorException
public void visitMergeCoGroup(POMergeCogroup poCoGrp) throws VisitorException
visitMergeCoGroup
in class PhyPlanVisitor
VisitorException
Copyright © 2007-2017 The Apache Software Foundation