Package co.cask.cdap.internal.specification

Examples of co.cask.cdap.internal.specification.PropertyFieldExtractor


    Set<String> dataSets = Sets.newHashSet(configureSpec.getDataSets());
    Map<String, String> properties = Maps.newHashMap(configureSpec.getProperties());

    Reflections.visit(mapReduce, TypeToken.of(mapReduce.getClass()),
                      new PropertyFieldExtractor(properties),
                      new DataSetFieldExtractor(dataSets));

    this.className = mapReduce.getClass().getName();
    this.name = configureSpec.getName();
    this.description = configureSpec.getDescription();
View Full Code Here


    Map<String, Set<Type>> inputTypes = Maps.newHashMap();
    Map<String, Set<Type>> outputTypes = Maps.newHashMap();
    Map<String, String> properties = Maps.newHashMap(flowletSpec.getProperties());
    Reflections.visit(flowlet, TypeToken.of(flowlet.getClass()),
                      new DataSetFieldExtractor(datasets),
                      new PropertyFieldExtractor(properties),
                      new OutputEmitterFieldExtractor(outputTypes),
                      new ProcessMethodExtractor(inputTypes));

    this.datasets = ImmutableSet.copyOf(datasets);
    this.inputTypes = immutableCopyOf(inputTypes);
View Full Code Here

    ProcedureSpecification configureSpec = procedure.configure();
    Set<String> dataSets = Sets.newHashSet(configureSpec.getDataSets());
    Map<String, String> properties = Maps.newHashMap(configureSpec.getProperties());

    Reflections.visit(procedure, TypeToken.of(procedure.getClass()),
                      new PropertyFieldExtractor(properties),
                      new DataSetFieldExtractor(dataSets));

    this.className = procedure.getClass().getName();
    this.name = configureSpec.getName();
    this.description = configureSpec.getDescription();
View Full Code Here

  public DefaultWorkflowActionSpecification(WorkflowAction action) {
    WorkflowActionSpecification spec = action.configure();

    Map<String, String> properties = Maps.newHashMap(spec.getProperties());
    Reflections.visit(action, TypeToken.of(action.getClass()),
                      new PropertyFieldExtractor(properties));

    this.className = action.getClass().getName();
    this.name = spec.getName();
    this.description = spec.getDescription();
    this.properties = ImmutableMap.copyOf(properties);
View Full Code Here

    this.description = description;
    this.properties = ImmutableMap.copyOf(properties);
    this.resourceSpecification = resourceSpecification;

    Reflections.visit(serviceWorker, TypeToken.of(serviceWorker.getClass()),
                                      new PropertyFieldExtractor(this.properties));
  }
View Full Code Here

    SparkSpecification configureSpec = spark.configure();

    Map<String, String> properties = Maps.newHashMap(configureSpec.getProperties());

    Reflections.visit(spark, TypeToken.of(spark.getClass()),
                      new PropertyFieldExtractor(properties));

    this.className = spark.getClass().getName();
    this.name = configureSpec.getName();
    this.description = configureSpec.getDescription();
    this.mainClassName = configureSpec.getMainClassName();
View Full Code Here

TOP

Related Classes of co.cask.cdap.internal.specification.PropertyFieldExtractor

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.