|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.impl.plan.PlanValidator<O,P>
P
- public abstract class PlanValidator<O extends Operator,P extends OperatorPlan<O>>
Master of all plan validation classes.
Constructor Summary | |
---|---|
PlanValidator()
|
Method Summary | |
---|---|
abstract void |
validate(P plan,
CompilationMessageCollector messageCollector)
If there are errors during validation, all of the errors have to be collected in the supplied messageCollector. |
protected void |
validate(PlanVisitor<O,P> visitor,
CompilationMessageCollector messageCollector)
This convenient method is used when: - if an exception being thrown from the current validation logic indicates that the whole validation pipeline should stop. |
protected void |
validateSkipCollectException(PlanVisitor<O,P> visitor,
CompilationMessageCollector messageCollector)
This convenient method is used when: - if an exception being thrown from the current validation logic indicates that the whole validation pipeline should stop. |
protected void |
validateTolerateException(PlanVisitor<O,P> visitor,
CompilationMessageCollector messageCollector)
This convenient method is used when: - if an exception being thrown from the current validation logic indicates that the whole validation pipeline should keep going by continuing with the next validation logic in the pipeline (skip the rest of the current logic) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlanValidator()
Method Detail |
---|
public abstract void validate(P plan, CompilationMessageCollector messageCollector) throws PlanValidationException
PlanValidationException
protected void validate(PlanVisitor<O,P> visitor, CompilationMessageCollector messageCollector) throws PlanValidationException
visitor
- messageCollector
-
PlanValidationException
protected void validateTolerateException(PlanVisitor<O,P> visitor, CompilationMessageCollector messageCollector) throws PlanValidationException
visitor
- messageCollector
-
PlanValidationException
protected void validateSkipCollectException(PlanVisitor<O,P> visitor, CompilationMessageCollector messageCollector) throws PlanValidationException
visitor
- messageCollector
-
PlanValidationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |