congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Permission (java.security)
    Legacy security code; do not use.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Runner (org.openjdk.jmh.runner)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 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