congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
AnalyzerJob.getDescriptor
Code IndexAdd Tabnine to your IDE (free)

How to use
getDescriptor
method
in
org.datacleaner.job.AnalyzerJob

Best Java code snippets using org.datacleaner.job.AnalyzerJob.getDescriptor (Showing top 10 results out of 315)

origin: datacleaner/DataCleaner

private boolean determineConcurrent() {
  final Concurrent concurrent = _analyzerJob.getDescriptor().getAnnotation(Concurrent.class);
  if (concurrent == null) {
    // analyzers are by default not concurrent
    return false;
  }
  return concurrent.value();
}
origin: org.eobjects.datacleaner/DataCleaner-monitor-services

/**
 * Builds a list of {@link MetricGroup}s for a specific {@link AnalysisJob}.
 * 
 * @param jobContext
 * @param analysisJob
 * 
 * @return
 */
public List<MetricGroup> getMetricGroups(MetricJobContext jobContext, AnalysisJob analysisJob) {
  final List<MetricGroup> metricGroups = new ArrayList<>();
  final List<AnalyzerJob> analyzerJobs = analysisJob.flattened()
      .flatMap(analysisJob1 -> analysisJob1.getAnalyzerJobs().stream()).collect(Collectors.toList());
  for (AnalyzerJob analyzerJob : analyzerJobs) {
    final Set<MetricDescriptor> metricDescriptors = analyzerJob.getDescriptor().getResultMetrics();
    final MetricGroup metricGroup = getMetricGroup(jobContext, analyzerJob, metricDescriptors);
    if (metricGroup != null) {
      metricGroups.add(metricGroup);
    }
  }
  return metricGroups;
}
origin: org.eobjects.datacleaner/DataCleaner-monitor-services

public List<String> getInputColumnNames(AnalyzerJob analyzerJob) {
  final List<String> columnNames = new ArrayList<String>();
  final Set<ConfiguredPropertyDescriptor> inputProperties = analyzerJob.getDescriptor()
      .getConfiguredPropertiesForInput(false);
  for (ConfiguredPropertyDescriptor inputProperty : inputProperties) {
    final Object input = analyzerJob.getConfiguration().getProperty(inputProperty);
    if (input instanceof InputColumn) {
      String columnName = ((InputColumn<?>) input).getName();
      columnNames.add(columnName);
    } else if (input instanceof InputColumn[]) {
      InputColumn<?>[] inputColumns = (InputColumn<?>[]) input;
      for (InputColumn<?> inputColumn : inputColumns) {
        String columnName = inputColumn.getName();
        if (!columnNames.contains(columnName)) {
          columnNames.add(columnName);
        }
      }
    }
  }
  return columnNames;
}
origin: datacleaner/DataCleaner

  final String actualDescriptorName = o.getDescriptor().getDisplayName();
  return descriptorName.equals(actualDescriptorName);
});
origin: org.eobjects.datacleaner/DataCleaner-monitor-services

jobComponent.put("name", analyzerJob.getName());
jobComponent.put("type", "analyzer");
jobComponent.put("descriptor", analyzerJob.getDescriptor().getDisplayName());
jobComponent.put("metadataProperties", analyzerJob.getMetadataProperties());
descriptors.add(jobComponent);
origin: datacleaner/DataCleaner

/**
 * Gets the "best candidate" to be the same (or a copy of) the analyzer job
 * provided in parameter.
 *
 * @param analyzerJob
 * @return
 */
public AnalyzerJob getAnalyzerJob(final AnalyzerJob analyzerJob) {
  if (_jobs.contains(analyzerJob)) {
    return analyzerJob;
  }
  final String analyzerInputName;
  final InputColumn<?> inputColumn = getIdentifyingInputColumn(analyzerJob);
  if (inputColumn == null) {
    analyzerInputName = null;
  } else {
    analyzerInputName = inputColumn.getName();
  }
  return getAnalyzerJob(analyzerJob.getDescriptor().getDisplayName(), analyzerJob.getName(), analyzerInputName);
}
origin: datacleaner/DataCleaner

if (includeDescriptorName && !Strings.isNullOrEmpty(jobName)) {
  label.append(" (");
  label.append(analyzerJob.getDescriptor().getDisplayName());
  label.append(')');
origin: datacleaner/DataCleaner

analyzerJob.getDescriptor().getResultReducerClass();
origin: datacleaner/DataCleaner

final AnalyzerType analyzerType = new AnalyzerType();
analyzerType.setName(analyzerJob.getName());
setDescriptor(analyzerType, analyzerJob.getDescriptor());
origin: datacleaner/DataCleaner

final ComponentConfiguration configuration = job.getConfiguration();
Set<ConfiguredPropertyDescriptor> configuredProperties =
    job.getDescriptor().getConfiguredPropertiesForInput();
          stringConverter));
  configuredProperties = job.getDescriptor().getConfiguredProperties();
  elementType.setProperties(
      createPropertyConfiguration(configuration, configuredProperties, stringConverter,
org.datacleaner.jobAnalyzerJobgetDescriptor

Popular methods of AnalyzerJob

  • getName
  • getComponentRequirement
  • getConfiguration
  • getMetadataProperties
  • getInput

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now