Codota Logo
AnalyzerJob
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • JButton (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now