Package co.cask.cdap.internal.spark

Examples of co.cask.cdap.internal.spark.DefaultSparkSpecification


  }

  @Override
  public void addSpark(Spark spark) {
    Preconditions.checkArgument(spark != null, "Spark cannot be null.");
    DefaultSparkSpecification spec = new DefaultSparkSpecification(spark);
    sparks.put(spec.getName(), spec);
  }
View Full Code Here


      /**
       * @return build a {@link SparkSpecification}
       */
      public SparkSpecification build() {
        return new DefaultSparkSpecification(name, description, mainClassName, arguments);
      }
View Full Code Here

    String name = jsonObj.get("name").getAsString();
    String description = jsonObj.get("description").getAsString();
    String mainClassName = jsonObj.get("mainClassName").getAsString();
    Map<String, String> properties = deserializeMap(jsonObj.get("properties"), context, String.class);

    return new DefaultSparkSpecification(className, name, description, mainClassName, properties);
  }
View Full Code Here

TOP

Related Classes of co.cask.cdap.internal.spark.DefaultSparkSpecification

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.