Package eu.stratosphere.api.common

Examples of eu.stratosphere.api.common.InvalidProgramException


    if (elements == null || viewedAs == null) {
      throw new NullPointerException();
    }
   
    if (!Serializable.class.isAssignableFrom(viewedAs)) {
      throw new InvalidProgramException("The elements are not serializable (java.io.Serializable).");
    }
   
    for (X elem : elements) {
      if (elem == null) {
        throw new IllegalArgumentException("The collection must not contain null elements.");
View Full Code Here


  /**
   * Creates a new local environment.
   */
  public LocalEnvironment() {
    if(!ExecutionEnvironment.localExecutionIsAllowed()) {
      throw new InvalidProgramException("The LocalEnvironment cannot be used when submitting a program through a client.");
    }
  }
View Full Code Here

    if (set == null || keys == null) {
      throw new NullPointerException();
    }
   
    if (keys.isEmpty()) {
      throw new InvalidProgramException("The grouping keys must not be empty.");
    }

    this.dataSet = set;
    this.keys = keys;
  }
View Full Code Here

  public void validate() throws InvalidProgramException {
    if (this.input == null) {
      throw new RuntimeException("Operator for initial partial solution is not set.");
    }
    if (this.iterationResult == null) {
      throw new InvalidProgramException("Operator producing the next version of the partial " +
          "solution (iteration result) is not set.");
    }
    if (this.terminationCriterion == null && this.numberOfIterations <= 0) {
      throw new InvalidProgramException("No termination condition is set " +
          "(neither fix number of iteration nor termination criterion).");
    }
  }
View Full Code Here

  // --------------------------------------------------------------------------------------------
 
  public LocalExecutor() {
    if (!ExecutionEnvironment.localExecutionIsAllowed()) {
      throw new InvalidProgramException("The LocalEnvironment cannot be used when submitting a program through a client.");
    }
   
    if (System.getProperty("log4j.configuration") == null) {
      setLoggingLevel(Level.INFO);
    }
View Full Code Here

TOP

Related Classes of eu.stratosphere.api.common.InvalidProgramException

Copyright © 2018 www.massapicom. 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.