org.apache.pig.validator
Class BlackAndWhitelistValidator
java.lang.Object
org.apache.pig.validator.BlackAndWhitelistValidator
- All Implemented Interfaces:
- LogicalRelationalNodeValidator
public final class BlackAndWhitelistValidator
- extends Object
- implements LogicalRelationalNodeValidator
This validator walks through the list of operators defined in PigConfiguration.PIG_BLACKLIST
and
PigConfiguration.PIG_WHITELIST
and checks whether the operation is permitted. In case these
properties are not defined (default), we let everything pass as usual.
Method Summary |
void |
validate()
Validates logical operators as defined in the logical plan of a pig
script. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlackAndWhitelistValidator
public BlackAndWhitelistValidator(PigContext pigContext,
OperatorPlan operatorPlan)
validate
public void validate()
throws FrontendException
- Description copied from interface:
LogicalRelationalNodeValidator
- Validates logical operators as defined in the logical plan of a pig
script.
- Specified by:
validate
in interface LogicalRelationalNodeValidator
- Throws:
FrontendException
Copyright © 2007-2012 The Apache Software Foundation