public interface ETLStep
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
addDefaultMetadataField(ETLStepMetadataFieldBean field)
Add a Default Metadata Field for this step.
|
void |
addInputStep(java.lang.String inFlowUuid,
ETLStep inputStep)
Register an input step.
|
void |
addOutputStep(java.lang.String outFlowUuid,
ETLStep outputStep)
Register an output step.
|
void |
addStepOption(java.lang.String optionKey,
java.lang.String optionValue)
Add a config option for this step.
|
void |
disable(boolean disable)
Disable the step
|
void |
endRows(java.lang.String inFlowUuid)
This method is used to signal end-of-input.
|
ETLStepAPIVersion |
getAPIVersion()
Get the Version of the Yellowfin Step API.
|
ETLRunContext |
getContext()
Get information about the ETL Runner running this step.
|
java.lang.String |
getDefaultDescription()
Get the step's Default Description.
|
java.util.List<ETLStepMetadataFieldBean> |
getDefaultMetadataFields()
Get Default Metadata of this step.
|
java.lang.String |
getDefaultName()
Get the step's Default Name.
|
java.lang.String |
getErrorFlowUuid()
FlowUUID connecting this step to an error step.
|
ETLStep |
getErrorStep()
The error step.
|
ETLStepBean |
getETLStepBean()
Get the ETLStepBean backing this step.
|
java.util.Set<java.lang.String> |
getInputFlowUuids()
Get all input flowUUIDs.
|
ETLStep |
getInputStep(java.lang.String inFlowUuid)
Get the input step connected to this step by the specified input flowUUID.
|
java.lang.Integer |
getMaxInputSteps()
Maximum number of inputs this step supports
|
java.lang.Integer |
getMaxOutputSteps()
Maximum number of outputs this step supports
|
java.util.List<ETLStepMetadataFieldBean> |
getMetadataFields(java.lang.String outFlowUuid)
Get Output Metadata Fields for a specified output flowUUID.
|
java.lang.Integer |
getMinInputSteps()
Minimum number of inputs required for this step to work
|
java.lang.Integer |
getMinOutputSteps()
Minimum number of outputs required for this step to work
|
java.lang.String |
getOffImage()
Return a base 64 off image
|
java.lang.String |
getOffImageMIMEType()
Return the file type for a base 64 image off
|
java.lang.String |
getOnImage()
Return a base 64 on image
|
java.lang.String |
getOnImageMIMEType()
Return the file type for a base 64 image on
|
java.util.Set<java.lang.String> |
getOutputFlowUuids()
Get all output flowUUIDs.
|
ETLStep |
getOutputStep(java.lang.String outFlowUuid)
Get the output step connected to this step by the specified output flowUUID.
|
ParameterPanelCollection |
getPanelCollection()
Get the ParameterPanelCollection object which represents the step's configuration UI elements.
|
long |
getRowLimit()
The maximum number of rows which will be output by this step.
|
ETLStepStatus |
getStatus()
Get the status of the step as an instance of
ETLStepStatus . |
ETLStepCategory |
getStepCategory()
Return the step's category, which should be one defined in
ETLStepCategory |
ETLStepClassification |
getStepClassification()
Returns a specific classification for an ETLStep
|
java.lang.String |
getStepOption(java.lang.String optionKey)
Get config option value for this step, corresponding to the specified option key.
|
java.util.Map<java.lang.String,java.lang.String> |
getStepOptions()
Get all config options for this step as a map of Option Key and Option Value.
|
java.lang.String |
getStepSubCategory()
Return the step's sub category, used to determine a grouping of the step in UI.
|
java.lang.String |
getUuid()
Get the step's UUID
|
boolean |
isEnabled()
Is this step enabled?
|
java.util.Map<java.lang.String,java.lang.String> |
onCopy(java.util.Map<java.lang.String,java.lang.String> uuidMap)
This method is called while the step is being copied and is intended to be used as a way for steps to copy their external dependencies.
|
void |
onDelete()
This method is called just before the step is deleted and is intended to be used as a way for steps to cleanup external dependencies.
|
void |
parseData(java.util.Map<java.lang.String,java.lang.Object> data)
Parse the data of panel collection from the front end to the correct format that should be saved into the database
and return the updated step options
|
void |
removeDefaultMetadataField(java.lang.String fieldUuid)
Remove a Default Metadata Field from this step.
|
void |
row(java.lang.Object[] data,
java.lang.String inFlowUuid)
Process a row of data received from the specified input flow.
|
void |
setContext(ETLRunContext context)
Set the step's
ETLRunContext . |
void |
setErrorStep(java.lang.String errorFlowUuid,
ETLStep errorStep)
Register the error step.
|
void |
setETLStepBean(ETLStepBean stepBean)
Set the ETLStepBean backing this step.
|
void |
setMetadataFields(java.lang.String outFlowUuid,
ETLFlowType flowType,
java.util.List<ETLStepMetadataFieldBean> metadataFields)
Set Output Metadata Fields for a specified output flowUUID.
|
void |
setRowLimit(long errorThreshold)
Set the step's rowLimit.
|
void |
setStatus(ETLStepStatus status)
Set the status object for this step.
|
void |
setStepOptions(java.util.Map<java.lang.String,java.lang.String> options)
Reset the step options with the provided values.
|
void |
setupDefaultFields()
Setup Default Metadata Fields for this step.
|
void |
setupOptions()
Set up step options.
|
java.util.Collection<ETLException> |
validate()
Perform validations on the ETLStep and return errors as a collection of
ETLException |
java.lang.String getUuid()
ETLStepAPIVersion getAPIVersion()
ETLStepAPIVersion
. This is usually the highest version,
unless the writer is coding to a different API version for compatibility.java.lang.String getDefaultName()
getETLStepBean()
and use its getStepName() method to get user-defined namejava.lang.String getDefaultDescription()
getETLStepBean()
and use its getDescription() method to get user-defined nameETLStepCategory getStepCategory()
ETLStepCategory
java.lang.String getStepSubCategory()
ETLStepSubCategory
which can be used, or a custom category can be used.
If this value is a localisation text key, the category will be localised in UI.ETLStepClassification getStepClassification()
ETLStepBean getETLStepBean()
void setETLStepBean(ETLStepBean stepBean)
java.util.Set<java.lang.String> getOutputFlowUuids()
ETLStep getOutputStep(java.lang.String outFlowUuid)
void addOutputStep(java.lang.String outFlowUuid, ETLStep outputStep)
outFlowUuid
- - FlowUUID connecting this step to the output stepoutputStep
- - The output stepjava.util.Set<java.lang.String> getInputFlowUuids()
ETLStep getInputStep(java.lang.String inFlowUuid)
void addInputStep(java.lang.String inFlowUuid, ETLStep inputStep)
inFlowUuid
- - FlowUUID connecting this step to the input stepinputStep
- - The input stepjava.lang.String getErrorFlowUuid()
getErrorStep()
ETLStep getErrorStep()
getErrorFlowUuid()
void setErrorStep(java.lang.String errorFlowUuid, ETLStep errorStep)
errorFlowUuid
- - FlowUUID connecting this step to the error steperrorStep
- - The error stepgetErrorStep()
,
getErrorFlowUuid()
java.util.List<ETLStepMetadataFieldBean> getDefaultMetadataFields()
void addDefaultMetadataField(ETLStepMetadataFieldBean field)
getDefaultMetadataFields()
void removeDefaultMetadataField(java.lang.String fieldUuid)
getDefaultMetadataFields()
void setupDefaultFields() throws ETLException
ETLException
getDefaultMetadataFields()
java.util.List<ETLStepMetadataFieldBean> getMetadataFields(java.lang.String outFlowUuid)
getDefaultMetadataFields()
void setMetadataFields(java.lang.String outFlowUuid, ETLFlowType flowType, java.util.List<ETLStepMetadataFieldBean> metadataFields)
ETLFlowType
must be specified as it determines which fields to filter out.
Passed-in fields which should not be output will be removed.getMetadataFields(String)
java.lang.Integer getMinInputSteps()
java.lang.Integer getMaxInputSteps()
java.lang.Integer getMinOutputSteps()
java.lang.Integer getMaxOutputSteps()
ETLStepStatus getStatus()
ETLStepStatus
.void setStatus(ETLStepStatus status)
long getRowLimit()
void setRowLimit(long errorThreshold)
getRowLimit()
ETLRunContext getContext()
void setContext(ETLRunContext context)
ETLRunContext
.void row(java.lang.Object[] data, java.lang.String inFlowUuid) throws ETLException
data
- - A row of datainFlowUuid
- - UUID of the input flow which sent the data.ETLException
void endRows(java.lang.String inFlowUuid) throws ETLException
inFlowUuid
- - UUID of the input flow which finished sending.ETLException
java.util.Collection<ETLException> validate()
ETLException
ParameterPanelCollection getPanelCollection()
java.util.Map<java.lang.String,java.lang.String> getStepOptions()
java.lang.String getStepOption(java.lang.String optionKey)
void addStepOption(java.lang.String optionKey, java.lang.String optionValue)
void setStepOptions(java.util.Map<java.lang.String,java.lang.String> options)
void setupOptions()
java.lang.String getOnImage()
java.lang.String getOffImage()
java.lang.String getOnImageMIMEType()
java.lang.String getOffImageMIMEType()
void parseData(java.util.Map<java.lang.String,java.lang.Object> data)
java.util.Map<java.lang.String,java.lang.String> onCopy(java.util.Map<java.lang.String,java.lang.String> uuidMap)
uuidMap
- mapping of oldUUID to newUUID for any UUID's inside the step including stepUUID, fieldUUIDs, flowUUIDs, metadataUUIDs, groupUUIDs, etc. which have been copied.void onDelete()
boolean isEnabled()
void disable(boolean disable)