Package co.cask.cdap.internal.specification

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


    this.appName = appName;
    Set<String> useDatasets = Sets.newHashSet(datasets);
    // Allow datasets that have only been used via the @UseDataSet annotation.
    for (HttpServiceHandler httpServiceHandler : handlers) {
      Reflections.visit(httpServiceHandler, TypeToken.of(httpServiceHandler.getClass()),
                        new DataSetFieldExtractor(useDatasets));
    }
    this.datasets = ImmutableSet.copyOf(useDatasets);
  }
View Full Code Here


    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();
    this.inputDataSet = configureSpec.getInputDataSet();
View Full Code Here

    Set<String> datasets = Sets.newHashSet(flowletSpec.getDataSets());
    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);
View Full Code Here

    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();
    this.dataSets = ImmutableSet.copyOf(dataSets);
View Full Code Here

TOP

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

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.