Tabnine Logo
AnalyzerJob
Code IndexAdd Tabnine to your IDE (free)

How to use
AnalyzerJob
in
org.datacleaner.job

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

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: 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: org.eobjects.datacleaner/DataCleaner-monitor-services

for (AnalyzerJob analyzerJob : analyzerJobs) {
  final Map<String, Object> jobComponent = new HashMap<>();
  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

final Map<String, String> metadataProperties = job.getMetadataProperties();
final String builderId = metadataProperties.get(AnalyzerComponentBuilder.METADATA_PROPERTY_BUILDER_ID);
final ComponentConfiguration configuration = job.getConfiguration();
Set<ConfiguredPropertyDescriptor> configuredProperties =
    job.getDescriptor().getConfiguredPropertiesForInput();
          stringConverter));
  configuredProperties = job.getDescriptor().getConfiguredProperties();
  elementType.setProperties(
      createPropertyConfiguration(configuration, configuredProperties, stringConverter,
origin: datacleaner/DataCleaner

if (includeDescriptorName && !Strings.isNullOrEmpty(jobName)) {
  label.append(" (");
  label.append(analyzerJob.getDescriptor().getDisplayName());
  label.append(')');
final InputColumn<?>[] input = analyzerJob.getInput();
if (input.length == 1) {
  if (input[0].getName().equals(jobName)) {
final ComponentRequirement requirement = analyzerJob.getComponentRequirement();
if (includeRequirements && requirement != null) {
  if (!(requirement instanceof AnyComponentRequirement)) {
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: datacleaner/DataCleaner

final ComponentRequirement requirement = job.getComponentRequirement();
if (requirement != null) {
  final String id = getId(requirement, outcomeMappings);
origin: datacleaner/DataCleaner

    analyzerJob.getMetadataProperties().get(AnalyzerComponentBuilder.METADATA_PROPERTY_BUILDER_ID);
if (builderId != null && analyzerTypesByBuilderId.containsKey(builderId)) {
} else {
  final AnalyzerType analyzerType = new AnalyzerType();
  analyzerType.setName(analyzerJob.getName());
  setDescriptor(analyzerType, analyzerJob.getDescriptor());
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: datacleaner/DataCleaner

  final String actualDescriptorName = o.getDescriptor().getDisplayName();
  return descriptorName.equals(actualDescriptorName);
});
    final String actualAnalyzerName = o.getName();
    return analyzerName.equals(actualAnalyzerName);
  });
origin: datacleaner/DataCleaner

analyzerJob.getDescriptor().getResultReducerClass();
org.datacleaner.jobAnalyzerJob

Javadoc

ComponentJob subinterface for Analyzers.

Most used methods

  • getDescriptor
  • getName
  • getComponentRequirement
  • getConfiguration
  • getMetadataProperties
  • getInput

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • getSystemService (Context)
  • getSharedPreferences (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • JPanel (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Vim 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