Class InjectorMeta
- java.lang.Object
-
- org.apache.hop.pipeline.transform.BaseTransformMeta<Injector,InjectorData>
-
- org.apache.hop.pipeline.transforms.injector.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.hop.pipeline.transform.ITransformMeta
ITransformMeta.TransformFactory
-
-
Field Summary
-
Fields inherited from class org.apache.hop.pipeline.transform.BaseTransformMeta
attributes, databases, log, loggingObject, parentTransformMeta
-
-
Constructor Summary
Constructors Constructor Description InjectorMeta()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck(List<ICheckResult> remarks, PipelineMeta pipelineMeta, TransformMeta transformMeta, IRowMeta prev, String[] input, String[] output, IRowMeta info, IVariables variables, IHopMetadataProvider metadataProvider)Checks the settings of this transform and puts the findings in a remarks List.Objectclone()Make an exact copy of this transform, make sure to explicitly copy Collections etc.voidgetFields(IRowMeta inputRowMeta, String name, IRowMeta[] info, TransformMeta nextTransform, IVariables variables, IHopMetadataProvider metadataProvider)Gets the fields.List<InjectorField>getInjectorFields()Gets injectorFieldsvoidsetInjectorFields(List<InjectorField> injectorFields)-
Methods inherited from class org.apache.hop.pipeline.transform.BaseTransformMeta
analyseImpact, cancelQueries, convertIOMetaToTransformNames, createTransform, createTransformData, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, getActiveReferencedObjectDescription, getDialogClassName, getFields, getLog, getLogChannelId, getName, getObjectCopy, getObjectType, getOptionalStreams, getParent, getParentTransformMeta, getReferencedObjectDescriptions, getRequiredFields, getResourceDependencies, getSqlStatements, getSupportedPipelineTypes, getTableFields, getTransformIOMeta, getTransformIOMeta, getUsedDatabaseConnections, getXml, handleStreamSelection, hasChanged, isBasic, isDebug, isDetailed, isReferencedObjectEnabled, isRowLevel, loadReferencedObject, loadXml, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, resetTransformIoMeta, searchInfoAndTargetTransforms, setChanged, setChanged, setDefault, setParentTransformMeta, setTransformIOMeta, supportsErrorHandling
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hop.pipeline.transform.ITransformMeta
cleanAfterHopFromRemove, cleanAfterHopFromRemove, cleanAfterHopToRemove, passDataToServletOutput
-
-
-
-
Method Detail
-
clone
public Object clone()
Description copied from interface:ITransformMetaMake an exact copy of this transform, make sure to explicitly copy Collections etc.- Specified by:
clonein interfaceITransformMeta- Overrides:
clonein classBaseTransformMeta<Injector,InjectorData>- Returns:
- an exact copy of this transform
-
getFields
public void getFields(IRowMeta inputRowMeta, String name, IRowMeta[] info, TransformMeta nextTransform, IVariables variables, IHopMetadataProvider metadataProvider) throws HopTransformException
Description copied from class:BaseTransformMetaGets the fields. This method doesn't pass along any pipeline metadata to help resolve output row metadata.- Specified by:
getFieldsin interfaceITransformMeta- Overrides:
getFieldsin classBaseTransformMeta<Injector,InjectorData>- Parameters:
inputRowMeta- the input row meta that is modified in this method to reflect the output row metadata of the transformname- Name of the transform to use as input for the origin field in the valuesinfo- Fields used as extra lookup informationnextTransform- the next transform that is targetedvariables- the variables The variable variables to use to replace variablesmetadataProvider- 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:ITransformMetaChecks the settings of this transform and puts the findings in a remarks List.- Specified by:
checkin interfaceITransformMeta- Overrides:
checkin classBaseTransformMeta<Injector,InjectorData>- Parameters:
remarks- The list to put the remarks in @see org.apache.hop.core.CheckResulttransformMeta- The transformMeta to help checkingprev- The fields coming from the previous transforminput- The input transform namesoutput- The output transform namesinfo- The fields that are used as information by the transformvariables- the variable variables to resolve variable expressions withmetadataProvider- 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
-
-