All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.boozallen.aiops.mda.generator.GenericStepPythonGenerator Maven / Gradle / Ivy

There is a newer version: 1.12.1
Show newest version
package com.boozallen.aiops.mda.generator;

/*-
 * #%L
 * aiSSEMBLE::Foundation::MDA
 * %%
 * Copyright (C) 2021 Booz Allen
 * %%
 * This software package is licensed under the Booz Allen Public License. All Rights Reserved.
 * #L%
 */

import com.boozallen.aiops.mda.metamodel.element.Step;
import org.technologybrewery.fermenter.mda.generator.GenerationContext;

import static com.boozallen.aiops.mda.generator.util.PipelineUtils.isGenericStep;

public class GenericStepPythonGenerator extends TargetedPipelineStepPythonGenerator {
    /*--~-~-~~
     * Usages:
     * | Target                  | Template                                    | Generated File        |
     * |-------------------------|---------------------------------------------|-----------------------|
     * | pythonGenericStepBase   | pipeline-common/generic.base.py.vm          | ${name}_base.py       |
     * | pySparkGenericStepBase  | pipeline-common/generic.base.py.vm          | step/${name}_base.py  |
     * | pySparkGenericStepImpl  | pipeline-common/generic.pyspark.step.py.vm  | step/${name}.py       |
     * | pythonGenericStepImpl   | pipeline-common/generic.python.step.py.vm   | impl/${name}.py       |
     */

    @Override
    protected boolean shouldGenerateStep(Step step, GenerationContext generationContext) {
        return isGenericStep(step);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy