public abstract class AbstractETLInlineRowStep extends AbstractETLRowStep implements ETLInlineStep
AbstractETLRowStep
.
Inline Step implementations must extend this and should process data row by row.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPERATING_FIELD |
commonDeps, dataPackets, dependencies
Constructor and Description |
---|
AbstractETLInlineRowStep() |
AbstractETLInlineRowStep(com.hof.mi.etl.ETLDependencies dependencies,
com.hof.util.dependency.CommonDependencies commonDeps) |
Modifier and Type | Method and Description |
---|---|
protected ETLStepConfigPanel |
generateDefaultPanel(java.lang.String panelKey,
java.lang.String panelName,
java.lang.String panelDesc,
java.lang.String panelClassName,
java.util.List<ParameterSection> sectionList)
This is a helper function to generate a basic panel with the parameters that are passed in.
|
protected ETLStepConfigSection |
generateDefaultSection(java.lang.String sectionKey,
java.lang.String sectionName,
java.lang.String sectionClassName,
java.util.List<Parameter> parameterList)
This is a helper function to generate a basic section with the parameters that are passed in.
|
java.util.List<java.lang.String> |
getInputDataTypes() |
protected ETLStepMetadataFieldBean |
getOperatingField()
Return the operating field of this inline step, as specified by the OPERATING_FIELD option
|
protected java.lang.String |
getOperatingFieldUUID()
Return the UUID of this inline step's operating field.
|
ETLStepCategory |
getStepCategory()
Return the step's category, which should be one defined in
ETLStepCategory |
Parameter |
getSubMenuParameter() |
protected com.hof.mi.data.Wire<java.lang.Object,java.lang.String> |
getWireForOperatingField()
Returns the Wire for this inline step's operating field.
|
java.lang.Boolean |
isParameterDisplayedAsSubMenu() |
java.util.Map<java.lang.String,java.lang.Object> |
parseInitData(java.util.Map<java.lang.String,java.lang.String> initData)
Similar to
#parseData(Map) , except this only gets called on the initOptions data when the step is first created. |
void |
setupGeneratedFields()
This implementation makes sure that the operating field is of the type that is acceptable by the inline if it
has restrictions on the data types it accepts.
|
java.util.Collection<ETLException> |
validate()
This function validates that the step has everything it requires to run successfully.
|
cleanup, endRows, postRow, preEndRows, preRow, processDependentRow, processRow, processWireData, row
addDefaultMetadataField, addError, addGeneratedField, addInputStep, addNewGeneratedField, addOutputStep, addStepOption, beginInternalTransmission, checkErrorThreshold, clearAllWires, disable, emitData, emitData, endInternalTransmission, endInternalTransmission, excludeDefaultField, flowFinished, generatePanelCollection, getContext, getDefaultInternalOptions, getDefaultMetadataFields, getDefaultMetadataFieldsMap, getDefaultMetadataFieldUuids, getDefaultMetadataFieldUuidsList, getDefaultMetadataMap, getDefaultToInputFieldMap, getErrorFlowUuid, getErrorStep, getEtlDataTypeUtil, getETLException, getETLStepBean, getFile, getFile, getFileName, getFileName, getFirstInputFlow, getFirstOutputFlow, getFreshDataPacket, getInputFlowForDefaultMetadataGroup, getInputFlowUuids, getInputStep, getInputSteps, getInputToDefaultFieldMap, getInvalidConfigETLException, getMaxInputSteps, getMaxOutputSteps, getMetadataFields, getMinInputSteps, getMinOutputSteps, getOffImage, getOffImageMIMEType, getOffImagePath, getOnImage, getOnImageMIMEType, getOnImagePath, getOutputFlowUuids, getOutputFlowUuidsExceededRowLimit, getOutputStep, getOutputSteps, getPanelCollection, getRowLimit, getStatus, getStepBooleanValue, getStepClassification, getStepIntegerValue, getStepOption, getStepOptions, getStepOptionValueJSONArray, getStepOptionValueJSONObject, getStepSubCategory, getStringUtil, getText, getText, getUnhandledETLException, getUuid, getValidatedStepOptions, getWireForField, hasPendingDependency, includeDefaultField, isEnabled, isGeneratedField, isMainInputFlow, isReplacementField, onCopy, onDelete, parseData, removeDefaultMetadataField, replaceDefaultField, restoreReplacedField, setContext, setErrorStep, setETLStepBean, setMetadataFields, setRowLimit, setStatus, setStepOptions, setupDefaultFields, setupOptions, shouldOutputField, stepCanRun, throwInvalidConfigETLException, throwUnhandledETLException, updateFieldSortOrder, waitForDependencies
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addDefaultMetadataField, addInputStep, addOutputStep, addStepOption, disable, endRows, getAPIVersion, getContext, getDefaultDescription, getDefaultMetadataFields, getDefaultName, getErrorFlowUuid, getErrorStep, getETLStepBean, getInputFlowUuids, getInputStep, getMaxInputSteps, getMaxOutputSteps, getMetadataFields, getMinInputSteps, getMinOutputSteps, getOffImage, getOffImageMIMEType, getOnImage, getOnImageMIMEType, getOutputFlowUuids, getOutputStep, getPanelCollection, getRowLimit, getStatus, getStepClassification, getStepOption, getStepOptions, getStepSubCategory, getUuid, isEnabled, onCopy, onDelete, parseData, removeDefaultMetadataField, row, setContext, setErrorStep, setETLStepBean, setMetadataFields, setRowLimit, setStatus, setStepOptions, setupDefaultFields, setupOptions
public static final java.lang.String OPERATING_FIELD
public AbstractETLInlineRowStep()
public AbstractETLInlineRowStep(com.hof.mi.etl.ETLDependencies dependencies, com.hof.util.dependency.CommonDependencies commonDeps)
public void setupGeneratedFields() throws ETLException
setupGeneratedFields
in class AbstractETLStep
ETLException
public java.util.Collection<ETLException> validate()
public ETLStepCategory getStepCategory()
ETLStep
ETLStepCategory
getStepCategory
in interface ETLStep
public java.lang.Boolean isParameterDisplayedAsSubMenu()
isParameterDisplayedAsSubMenu
in interface ETLInlineStep
public Parameter getSubMenuParameter()
getSubMenuParameter
in interface ETLInlineStep
public java.util.List<java.lang.String> getInputDataTypes()
getInputDataTypes
in interface ETLInlineStep
public java.util.Map<java.lang.String,java.lang.Object> parseInitData(java.util.Map<java.lang.String,java.lang.String> initData)
#parseData(Map)
, except this only gets called on the initOptions data when the step is first created.
The difference lies in which data will be present, since some steps have different init UI and edit UI.protected ETLStepConfigPanel generateDefaultPanel(java.lang.String panelKey, java.lang.String panelName, java.lang.String panelDesc, java.lang.String panelClassName, java.util.List<ParameterSection> sectionList)
panelKey
- The key to use to identify the panelpanelName
- The name given to the panelpanelDesc
- A descriptionpanelClassName
- A css class that has to be appliedsectionList
- the list of sections contained in this panelprotected ETLStepConfigSection generateDefaultSection(java.lang.String sectionKey, java.lang.String sectionName, java.lang.String sectionClassName, java.util.List<Parameter> parameterList)
sectionKey
- The key to identify the sectionsectionName
- The name given to the sectionsectionClassName
- The css class to be applied to the sectionparameterList
- The list of parameters that the section must holdprotected java.lang.String getOperatingFieldUUID()
protected ETLStepMetadataFieldBean getOperatingField()
protected com.hof.mi.data.Wire<java.lang.Object,java.lang.String> getWireForOperatingField()