org.apache.pig.impl.logicalLayer.validators
Class InputOutputFileValidator
java.lang.Object
org.apache.pig.impl.plan.PlanValidator<LogicalOperator,LogicalPlan>
org.apache.pig.impl.logicalLayer.validators.InputOutputFileValidator
public class InputOutputFileValidator
- extends PlanValidator<LogicalOperator,LogicalPlan>
This validator does check
1) Input files referred to by all LOLoads exist
2) Output files referred to by all LOStores do not exist
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputOutputFileValidator
public InputOutputFileValidator(PigContext pigContext)
validate
public void validate(LogicalPlan plan,
CompilationMessageCollector messageCollector)
throws PlanValidationException
- Description copied from class:
PlanValidator
- If there are errors during validation, all of the errors have
to be collected in the supplied messageCollector. The exception should
be thrown only when the validation logic finds something too bad
that other validation logics should not try to do more work.
- Specified by:
validate
in class PlanValidator<LogicalOperator,LogicalPlan>
- Throws:
PlanValidationException
Copyright © ${year} The Apache Software Foundation