Class InjectorMeta

  • All Implemented Interfaces:
    Cloneable, ITransformMeta

    @Transform(id="Injector",
               image="ui/images/injector.svg",
               name="i18n:org.apache.hop.pipeline.transform:BaseTransform.TypeLongDesc.Injector",
               description="i18n:org.apache.hop.pipeline.transform:BaseTransform.TypeTooltipDesc.Injector",
               categoryDescription="i18n:org.apache.hop.pipeline.transform:BaseTransform.Category.Inline",
               keywords="i18n::InjectorMeta.keyword",
               documentationUrl="/pipeline/transforms/injector.html")
    public class InjectorMeta
    extends BaseTransformMeta<Injector,​InjectorData>
    Metadata class to allow a java program to inject rows of data into a pipeline. This transform can be used as a starting point in such a "headless" pipeline.
    • Constructor Detail

      • InjectorMeta

        public InjectorMeta()
    • Method Detail

      • getFields

        public void getFields​(IRowMeta inputRowMeta,
                              String name,
                              IRowMeta[] info,
                              TransformMeta nextTransform,
                              IVariables variables,
                              IHopMetadataProvider metadataProvider)
                       throws HopTransformException
        Description copied from class: BaseTransformMeta
        Gets the fields. This method doesn't pass along any pipeline metadata to help resolve output row metadata.
        Specified by:
        getFields in interface ITransformMeta
        Overrides:
        getFields in class BaseTransformMeta<Injector,​InjectorData>
        Parameters:
        inputRowMeta - the input row meta that is modified in this method to reflect the output row metadata of the transform
        name - Name of the transform to use as input for the origin field in the values
        info - Fields used as extra lookup information
        nextTransform - the next transform that is targeted
        variables - the variables The variable variables to use to replace variables
        metadataProvider - the MetaStore to use to load additional external data or metadata impacting the output fields
        Throws:
        HopTransformException - the hop transform exception
      • check

        public void check​(List<ICheckResult> remarks,
                          PipelineMeta pipelineMeta,
                          TransformMeta transformMeta,
                          IRowMeta prev,
                          String[] input,
                          String[] output,
                          IRowMeta info,
                          IVariables variables,
                          IHopMetadataProvider metadataProvider)
        Description copied from interface: ITransformMeta
        Checks the settings of this transform and puts the findings in a remarks List.
        Specified by:
        check in interface ITransformMeta
        Overrides:
        check in class BaseTransformMeta<Injector,​InjectorData>
        Parameters:
        remarks - The list to put the remarks in @see org.apache.hop.core.CheckResult
        transformMeta - The transformMeta to help checking
        prev - The fields coming from the previous transform
        input - The input transform names
        output - The output transform names
        info - The fields that are used as information by the transform
        variables - the variable variables to resolve variable expressions with
        metadataProvider - the MetaStore to use to load additional external data or metadata impacting the output fields
      • getInjectorFields

        public List<InjectorField> getInjectorFields()
        Gets injectorFields
        Returns:
        value of injectorFields
      • setInjectorFields

        public void setInjectorFields​(List<InjectorField> injectorFields)
        Parameters:
        injectorFields - The injectorFields to set