org.apache.pig.impl.logicalLayer.validators
Class InputOutputFileValidator

java.lang.Object
  extended by org.apache.pig.impl.plan.PlanValidator<LogicalOperator,LogicalPlan>
      extended by 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


Constructor Summary
InputOutputFileValidator(PigContext pigContext)
           
 
Method Summary
 void validate(LogicalPlan plan, CompilationMessageCollector messageCollector)
          If there are errors during validation, all of the errors have to be collected in the supplied messageCollector.
 
Methods inherited from class org.apache.pig.impl.plan.PlanValidator
validate, validateSkipCollectException, validateTolerateException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputOutputFileValidator

public InputOutputFileValidator(PigContext pigContext)
Method Detail

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