congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • getContentResolver (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JFileChooser (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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