public abstract class AbstractGroupedDataInlineStep extends AbstractETLInlineRowStep
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUTO_GROUP_KEY |
protected java.util.List<ETLStepMetadataFieldBean> |
defaultFields |
static java.lang.Integer |
DUMMY_TEMPLATE_ID |
protected com.hof.mi.data.Wire<java.lang.Object,java.lang.String> |
fieldWire |
protected java.util.List<com.hof.mi.etl.ETLFilterPredicate> |
filterPredicates |
static java.lang.String |
FILTERS_KEY_PREFIX |
protected com.hof.mi.data.Wire<java.lang.Object,java.lang.String> |
operatingFieldWire |
static java.lang.String |
PANEL_KEY |
static java.lang.String |
PARAM_KEY |
static java.lang.String |
REPLACEFIELD_KEY |
static java.lang.String |
SECTION_KEY |
protected boolean |
stepHasSetupForRun |
OPERATING_FIELDcommonDeps, dataPackets, dependencies| Constructor and Description |
|---|
AbstractGroupedDataInlineStep() |
AbstractGroupedDataInlineStep(com.hof.mi.etl.ETLGroupedDataDependencies groupedDependencies) |
| Modifier and Type | Method and Description |
|---|---|
protected ParameterPanelCollection |
generatePanelCollection()
Method to generate the ParameterPanelCollection object which represents the step's configuration UI elements.
|
ETLStepAPIVersion |
getAPIVersion()
Get the Version of the Yellowfin Step API.
|
java.lang.Integer |
getColumnIndexForOperatingFieldInput(java.util.List<ETLStepMetadataFieldBean> inputFields)
Return the column index in the inputFields list to the operating field's linked input field.
|
abstract ParameterImpl |
getCustomParameter()
Return the custom parameter which will setup the specific grouped data view with
correct options.
|
java.lang.String |
getDefaultDescription()
Get the step's Default Description.
|
java.util.Map<java.lang.String,java.lang.String> |
getDefaultInternalOptions()
Return step optionKeys and optionValues for options internal to the step.
|
java.lang.String |
getDefaultName()
Get the step's Default Name.
|
java.util.Map<java.lang.String,?> |
getParamData()
This step's parameter needs it's data to be an GroupedDataModel for the view to use.
|
ETLStepClassification |
getStepClassification()
Returns a specific classification for an ETLStep
|
java.util.Map<java.lang.String,java.lang.String> |
getValidatedStepOptions()
Validate options returned by
AbstractETLStep.getStepOptions() and return a map of optionKeys and optionValues. |
java.util.List<com.hof.mi.data.ReportFilterBean> |
loadFilters(com.hof.util.DBAction db)
Load this step's grouped data filters, as specified in the step options map.
|
java.util.Map<java.lang.Integer,com.hof.mi.data.ReportFilterBean> |
loadFiltersMap(com.hof.util.DBAction db)
Returns this step's grouped data filters mappedby filter id.
|
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
|
java.util.Map<java.lang.String,java.lang.Object> |
parseGroupedDataModel(com.hof.mi.models.report.GroupedDataModel model)
Return the step options and their keys which should be saved for this group model
|
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. |
protected boolean |
processWireData(java.util.List<ETLStepMetadataFieldBean> fields)
Process data on
Wires. |
protected void |
setupForRun(java.util.List<ETLStepMetadataFieldBean> inputFields)
Setup all the required dependencies of this step before it processes row
data.
|
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.
|
generateDefaultPanel, generateDefaultSection, getInputDataTypes, getOperatingField, getOperatingFieldUUID, getStepCategory, getSubMenuParameter, getWireForOperatingField, isParameterDisplayedAsSubMenu, validatecleanup, endRows, postRow, preEndRows, preRow, processDependentRow, processRow, rowaddDefaultMetadataField, addError, addGeneratedField, addInputStep, addNewGeneratedField, addOutputStep, addStepOption, beginInternalTransmission, checkErrorThreshold, clearAllWires, disable, emitData, emitData, endInternalTransmission, endInternalTransmission, excludeDefaultField, flowFinished, getContext, 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, getStepIntegerValue, getStepOption, getStepOptions, getStepOptionValueJSONArray, getStepOptionValueJSONObject, getStepSubCategory, getStringUtil, getText, getText, getUnhandledETLException, getUuid, getWireForField, hasPendingDependency, includeDefaultField, isEnabled, isGeneratedField, isMainInputFlow, isReplacementField, onCopy, onDelete, removeDefaultMetadataField, replaceDefaultField, restoreReplacedField, setContext, setErrorStep, setETLStepBean, setMetadataFields, setRowLimit, setStatus, setStepOptions, setupDefaultFields, setupOptions, shouldOutputField, stepCanRun, throwInvalidConfigETLException, throwUnhandledETLException, updateFieldSortOrder, waitForDependenciesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDefaultMetadataField, addInputStep, addOutputStep, addStepOption, disable, endRows, getContext, getDefaultMetadataFields, getErrorFlowUuid, getErrorStep, getETLStepBean, getInputFlowUuids, getInputStep, getMaxInputSteps, getMaxOutputSteps, getMetadataFields, getMinInputSteps, getMinOutputSteps, getOffImage, getOffImageMIMEType, getOnImage, getOnImageMIMEType, getOutputFlowUuids, getOutputStep, getPanelCollection, getRowLimit, getStatus, getStepOption, getStepOptions, getStepSubCategory, getUuid, isEnabled, onCopy, onDelete, removeDefaultMetadataField, row, setContext, setErrorStep, setETLStepBean, setMetadataFields, setRowLimit, setStatus, setStepOptions, setupDefaultFields, setupOptionspublic static final java.lang.String PARAM_KEY
public static final java.lang.String SECTION_KEY
public static final java.lang.String PANEL_KEY
public static final java.lang.String FILTERS_KEY_PREFIX
public static final java.lang.String AUTO_GROUP_KEY
public static final java.lang.String REPLACEFIELD_KEY
public static final java.lang.Integer DUMMY_TEMPLATE_ID
protected boolean stepHasSetupForRun
protected com.hof.mi.data.Wire<java.lang.Object,java.lang.String> fieldWire
protected com.hof.mi.data.Wire<java.lang.Object,java.lang.String> operatingFieldWire
protected java.util.List<com.hof.mi.etl.ETLFilterPredicate> filterPredicates
protected java.util.List<ETLStepMetadataFieldBean> defaultFields
public AbstractGroupedDataInlineStep()
public AbstractGroupedDataInlineStep(com.hof.mi.etl.ETLGroupedDataDependencies groupedDependencies)
public java.lang.String getDefaultName()
ETLStepETLStep.getETLStepBean() and use its getStepName() method to get user-defined namepublic java.lang.String getDefaultDescription()
ETLStepETLStep.getETLStepBean() and use its getDescription() method to get user-defined namepublic ETLStepAPIVersion getAPIVersion()
ETLStepETLStepAPIVersion. This is usually the highest version,
unless the writer is coding to a different API version for compatibility.public java.util.Map<java.lang.String,java.lang.String> getDefaultInternalOptions()
AbstractETLStepgetDefaultInternalOptions in class AbstractETLSteppublic java.util.Map<java.lang.String,java.lang.String> getValidatedStepOptions()
AbstractETLStepAbstractETLStep.getStepOptions() and return a map of optionKeys and optionValues.
This map represents the current validated configuration of the step.getValidatedStepOptions in class AbstractETLSteppublic void setupGeneratedFields()
throws ETLException
AbstractETLInlineRowStepsetupGeneratedFields in class AbstractETLInlineRowStepETLExceptionpublic ETLStepClassification getStepClassification()
ETLStepgetStepClassification in interface ETLStepgetStepClassification in class AbstractETLSteppublic java.lang.Integer getColumnIndexForOperatingFieldInput(java.util.List<ETLStepMetadataFieldBean> inputFields)
protected void setupForRun(java.util.List<ETLStepMetadataFieldBean> inputFields)
protected boolean processWireData(java.util.List<ETLStepMetadataFieldBean> fields) throws ETLException, java.lang.InterruptedException
AbstractETLRowStepWires. When the framework calls this method, data from each column of the current row is on its own Wire.
Each Wire is mapped to a metadata field and may be accessed using AbstractETLStep.getWireForField(String).
Data may be retrieved from the Wire, processed, and put back on the same Wire or a different one.
ETLExceptions and thrown so that the framework can show them to the user.
Do not catch and swallow exceptions.
processWireData in class AbstractETLRowStepfields - - Metadata Fields for a row of data to be processed.ETLExceptionjava.lang.InterruptedExceptionpublic java.util.List<com.hof.mi.data.ReportFilterBean> loadFilters(com.hof.util.DBAction db)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Map<java.lang.Integer,com.hof.mi.data.ReportFilterBean> loadFiltersMap(com.hof.util.DBAction db)
throws java.lang.Exception
java.lang.ExceptionloadFilters(DBAction)public abstract ParameterImpl getCustomParameter()
protected ParameterPanelCollection generatePanelCollection()
AbstractETLStepgeneratePanelCollection in class AbstractETLSteppublic java.util.Map<java.lang.String,?> getParamData()
public void parseData(java.util.Map<java.lang.String,java.lang.Object> data)
ETLStepparseData in interface ETLStepparseData in class AbstractETLSteppublic java.util.Map<java.lang.String,java.lang.Object> parseInitData(java.util.Map<java.lang.String,java.lang.String> initData)
AbstractETLInlineRowStep#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.parseInitData in class AbstractETLInlineRowSteppublic java.util.Map<java.lang.String,java.lang.Object> parseGroupedDataModel(com.hof.mi.models.report.GroupedDataModel model)