Class ScriptValuesMeta
java.lang.Object
org.apache.hop.pipeline.transform.BaseTransformMeta<ScriptValues,ScriptValuesData>
org.apache.hop.pipeline.transforms.javascript.ScriptValuesMeta
- All Implemented Interfaces:
Cloneable,ITransformMeta
@Transform(id="ScriptValueMod",
image="javascript.svg",
name="i18n::ScriptValuesMod.Name",
description="i18n::ScriptValuesMod.Description",
categoryDescription="i18n:org.apache.hop.pipeline.transform:BaseTransform.Category.Scripting",
keywords="i18n::ScriptValuesMeta.keyword",
documentationUrl="/pipeline/transforms/javascript.html")
public class ScriptValuesMeta
extends BaseTransformMeta<ScriptValues,ScriptValuesData>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hop.pipeline.transform.ITransformMeta
ITransformMeta.TransformFactory -
Field Summary
FieldsFields inherited from class org.apache.hop.pipeline.transform.BaseTransformMeta
attributes, databases, log, loggingObject, parentTransformMeta -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidallocate(int nrFields) voidcheck(List<ICheckResult> remarks, PipelineMeta pipelineMeta, TransformMeta transformMeta, IRowMeta prev, String[] input, String[] output, IRowMeta info, IVariables variables, IHopMetadataProvider metadataProvider) clone()String[]voidgetFields(IRowMeta row, String originTransformName, IRowMeta[] info, TransformMeta nextTransform, IVariables variables, IHopMetadataProvider metadataProvider) getFunctionFromScript(String strFunction, String strScript) String[]int[]intint[]String[]boolean[]int[]getType()getXml()voidloadXml(Node transformNode, IHopMetadataProvider metadataProvider) voidvoidvoidsetFieldname(String[] fieldname) voidsetJSScripts(ScriptValuesScript[] jsScripts) voidsetLength(int[] length) voidsetOptimizationLevel(String optimizationLevel) voidsetPrecision(int[] precision) voidvoidsetReplace(boolean[] replace) voidsetType(int[] type) booleanMethods inherited from class org.apache.hop.pipeline.transform.BaseTransformMeta
analyseImpact, cancelQueries, convertIOMetaToTransformNames, createTransform, createTransformData, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, getActiveReferencedObjectDescription, getDialogClassName, getFields, getGenericType, getLog, getLogChannelId, getName, getObjectCopy, getObjectType, getOptionalStreams, getParameterizedTypes, getParent, getParentTransformMeta, getReferencedObjectDescriptions, getRequiredFields, getResourceDependencies, getSqlStatements, getSupportedPipelineTypes, getTableFields, getTransformIOMeta, getTransformIOMeta, getUsedDatabaseConnections, handleStreamSelection, hasChanged, isBasic, isDebug, isDetailed, isReferencedObjectEnabled, isRowLevel, loadReferencedObject, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, resetTransformIoMeta, searchInfoAndTargetTransforms, setChanged, setChanged, setParentTransformMeta, setTransformIOMeta, supportsMultiCopyExecutionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hop.pipeline.transform.ITransformMeta
cleanAfterHopFromRemove, cleanAfterHopFromRemove, cleanAfterHopToRemove, passDataToServletOutput
-
Field Details
-
OPTIMIZATION_LEVEL_DEFAULT
- See Also:
-
CONST_SPACES
- See Also:
-
-
Constructor Details
-
ScriptValuesMeta
public ScriptValuesMeta()
-
-
Method Details
-
getLength
public int[] getLength()- Returns:
- Returns the length.
-
setLength
public void setLength(int[] length) - Parameters:
length- The length to set.
-
getFieldname
- Returns:
- Returns the name.
-
setFieldname
- Parameters:
fieldname- The name to set.
-
getPrecision
public int[] getPrecision()- Returns:
- Returns the precision.
-
setPrecision
public void setPrecision(int[] precision) - Parameters:
precision- The precision to set.
-
getRename
- Returns:
- Returns the rename.
-
setRename
- Parameters:
rename- The rename to set.
-
getType
public int[] getType()- Returns:
- Returns the type.
-
afterInjection
public void afterInjection() -
setType
public void setType(int[] type) - Parameters:
type- The type to set.
-
getNumberOfJSScripts
public int getNumberOfJSScripts() -
getJSScriptNames
-
getJSScripts
-
setJSScripts
-
loadXml
public void loadXml(Node transformNode, IHopMetadataProvider metadataProvider) throws HopXmlException - Specified by:
loadXmlin interfaceITransformMeta- Overrides:
loadXmlin classBaseTransformMeta<ScriptValues,ScriptValuesData> - Throws:
HopXmlException
-
allocate
public void allocate(int nrFields) -
clone
- Specified by:
clonein interfaceITransformMeta- Overrides:
clonein classBaseTransformMeta<ScriptValues,ScriptValuesData>
-
setDefault
public void setDefault()- Specified by:
setDefaultin interfaceITransformMeta- Overrides:
setDefaultin classBaseTransformMeta<ScriptValues,ScriptValuesData>
-
getFields
public void getFields(IRowMeta row, String originTransformName, IRowMeta[] info, TransformMeta nextTransform, IVariables variables, IHopMetadataProvider metadataProvider) throws HopTransformException - Specified by:
getFieldsin interfaceITransformMeta- Overrides:
getFieldsin classBaseTransformMeta<ScriptValues,ScriptValuesData> - Throws:
HopTransformException
-
getXml
- Specified by:
getXmlin interfaceITransformMeta- Overrides:
getXmlin classBaseTransformMeta<ScriptValues,ScriptValuesData>
-
check
public void check(List<ICheckResult> remarks, PipelineMeta pipelineMeta, TransformMeta transformMeta, IRowMeta prev, String[] input, String[] output, IRowMeta info, IVariables variables, IHopMetadataProvider metadataProvider) - Specified by:
checkin interfaceITransformMeta- Overrides:
checkin classBaseTransformMeta<ScriptValues,ScriptValuesData>
-
getFunctionFromScript
-
parseXmlForAdditionalClasses
- Throws:
HopException
-
getAddClasses
-
supportsErrorHandling
public boolean supportsErrorHandling()- Specified by:
supportsErrorHandlingin interfaceITransformMeta- Overrides:
supportsErrorHandlingin classBaseTransformMeta<ScriptValues,ScriptValuesData>
-
getReplace
public boolean[] getReplace()- Returns:
- the replace
-
setReplace
public void setReplace(boolean[] replace) - Parameters:
replace- the replace to set
-
setOptimizationLevel
-
getOptimizationLevel
-