Examples of validate()


Examples of org.apache.pig.impl.logicalLayer.validators.TypeCheckingValidator.validate()

        ps.visit();
       
        // run through validator
        CompilationMessageCollector collector = new CompilationMessageCollector() ;
        TypeCheckingValidator typeValidator = new TypeCheckingValidator() ;
        typeValidator.validate(plan, collector) ;       
        printMessageCollector(collector) ;
        printTypeGraph(plan) ;
       
        if (collector.hasError()) {
            throw new Exception("Error during type checking") ;
View Full Code Here

Examples of org.apache.pig.newplan.logical.relational.LogicalPlan.validate()

        private void validateQuery() throws FrontendException {
            String query = buildQuery();
            QueryParserDriver parserDriver = new QueryParserDriver( pigContext, scope, fileNameMap );
            try {
                LogicalPlan plan = parserDriver.parse( query );
                plan.validate(pigContext, scope, true);
            } catch(FrontendException ex) {
                scriptCache.remove( scriptCache.size() -1 );
                throw ex;
            }
        }
View Full Code Here

Examples of org.apache.pig.newplan.logical.rules.InputOutputFileValidator.validate()

                if (pigContext.inExplain==false) {
                    // Validate input/output file. Currently no validation framework in
                    // new logical plan, put this validator here first.
                    // We might decide to move it out to a validator framework in future
                    InputOutputFileValidator validator = new InputOutputFileValidator(newPlan, pigContext);
                    validator.validate();
                }
               
                // translate new logical plan to physical plan
                org.apache.pig.newplan.logical.relational.LogToPhyTranslationVisitor translator =
                    new org.apache.pig.newplan.logical.relational.LogToPhyTranslationVisitor(newPlan);
View Full Code Here

Examples of org.apache.pig.newplan.logical.rules.LoadStoreFuncDupSignatureValidator.validate()

       
        SchemaResetter schemaResetter = new SchemaResetter( lp );
        schemaResetter.visit();
       
        LoadStoreFuncDupSignatureValidator loadStoreFuncDupSignatureValidator = new LoadStoreFuncDupSignatureValidator(lp);
        loadStoreFuncDupSignatureValidator.validate();
       
        StoreAliasSetter storeAliasSetter = new StoreAliasSetter( lp );
        storeAliasSetter.visit();
       
        // run optimizer
View Full Code Here

Examples of org.apache.pig.newplan.logical.rules.LogicalRelationalNodeValidator.validate()

            ctx.getProperties().setProperty(PigConfiguration.PIG_BLACKLIST, "filter");

            LogicalPlan plan = generateLogicalPlan("foo", "bar", ctx.getDfs());

            LogicalRelationalNodeValidator executor = new BlackAndWhitelistValidator(ctx, plan);
            executor.validate();
            fail();
        } catch (Exception e) {
            Util.assertExceptionAndMessage(FrontendException.class, e,
                    "filter is disabled. ");
        }
View Full Code Here

Examples of org.apache.pig.validator.BlackAndWhitelistFilter.validate()

     * @param val - string containing command to be executed
     */
    public  void processShellCmd(String key, String val, Boolean overwritethrows ParameterSubstitutionException, FrontendException {
        if (pigContext != null) {
            BlackAndWhitelistFilter filter = new BlackAndWhitelistFilter(pigContext);
            filter.validate(PigCommandFilter.Command.SH);
        }

        if (param_val.containsKey(key)) {
            if (param_source.get(key).equals(val) || !overwrite) {
                return;
View Full Code Here

Examples of org.apache.pig.validator.BlackAndWhitelistValidator.validate()

            // Validate input/output file
            new InputOutputFileValidatorVisitor(this, pigContext).visit();
        }

        BlackAndWhitelistValidator validator = new BlackAndWhitelistValidator(pigContext, this);
        validator.validate();

        // Now make sure the plan is consistent
        UidResetter uidResetter = new UidResetter(this);
        uidResetter.visit();
View Full Code Here

Examples of org.apache.pivot.wtk.Component.validate()

        Component component = componentNode.getComponent();

        if (component == null) {
            setSize(0, 0);
        } else {
            component.validate();
            component.setSize(component.getPreferredWidth(), component.getPreferredHeight());
            setSize(component.getWidth(), component.getHeight());
        }
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.crypto.Biff8EncryptionKey.validate()

      if (userPassword == null) {
        key = Biff8EncryptionKey.create(fpr.getDocId());
      } else {
        key = Biff8EncryptionKey.create(userPassword, fpr.getDocId());
      }
      if (!key.validate(fpr.getSaltData(), fpr.getSaltHash())) {
        throw new EncryptedDocumentException(
            (userPassword == null ? "Default" : "Supplied")
            + " password is invalid for docId/saltData/saltHash");
      }
      return new RecordInputStream(original, key, _initialRecordsSize);
View Full Code Here

Examples of org.apache.poi.hssf.record.crypto.Biff8RC4Key.validate()

      Biff8EncryptionKey key;
      if (fpr.getRc4KeyData() != null) {
          Rc4KeyData rc4 = fpr.getRc4KeyData();
          Biff8RC4Key rc4key = Biff8RC4Key.create(userPassword, rc4.getSalt());
          key = rc4key;
          if (!rc4key.validate(rc4.getEncryptedVerifier(), rc4.getEncryptedVerifierHash())) {
                  throw new EncryptedDocumentException(
                        (Decryptor.DEFAULT_PASSWORD.equals(userPassword) ? "Default" : "Supplied")
                        + " password is invalid for salt/verifier/verifierHash");
          }
      } else if (fpr.getXorKeyData() != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.