Package org.apache.hop.execution
Class ExecutionDataBuilder
- java.lang.Object
-
- org.apache.hop.execution.ExecutionDataBuilder
-
public final class ExecutionDataBuilder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringALL_TRANSFORMSstatic StringKEY_FILESstatic StringKEY_RESULTstatic StringKEY_ROWSstatic StringKEY_VARIABLES_AFTERstatic StringKEY_VARIABLES_BEFOREstatic StringRESULT_KEY_ERRORSstatic StringRESULT_KEY_RESULTstatic StringRESULT_KEY_STOPPED
-
Method Summary
-
-
-
Field Detail
-
ALL_TRANSFORMS
public static final String ALL_TRANSFORMS
- See Also:
- Constant Field Values
-
KEY_RESULT
public static final String KEY_RESULT
- See Also:
- Constant Field Values
-
KEY_ROWS
public static final String KEY_ROWS
- See Also:
- Constant Field Values
-
KEY_FILES
public static final String KEY_FILES
- See Also:
- Constant Field Values
-
KEY_VARIABLES_BEFORE
public static final String KEY_VARIABLES_BEFORE
- See Also:
- Constant Field Values
-
KEY_VARIABLES_AFTER
public static final String KEY_VARIABLES_AFTER
- See Also:
- Constant Field Values
-
RESULT_KEY_RESULT
public static final String RESULT_KEY_RESULT
- See Also:
- Constant Field Values
-
RESULT_KEY_ERRORS
public static final String RESULT_KEY_ERRORS
- See Also:
- Constant Field Values
-
RESULT_KEY_STOPPED
public static final String RESULT_KEY_STOPPED
- See Also:
- Constant Field Values
-
-
Method Detail
-
of
public static ExecutionDataBuilder of()
-
fromAllTransformData
public static ExecutionDataBuilder fromAllTransformData(IPipelineEngine<PipelineMeta> pipeline, Map<String,List<IExecutionDataSamplerStore>> samplerStoresMap, boolean finished)
-
beforeActionExecution
public static ExecutionDataBuilder beforeActionExecution(IWorkflowEngine<WorkflowMeta> workflow, ActionMeta actionMeta, IAction action, IVariables referenceVariables)
-
afterActionExecution
public static ExecutionDataBuilder afterActionExecution(IWorkflowEngine<WorkflowMeta> workflow, ActionMeta actionMeta, IAction action, Result result, IVariables referenceVariables, IVariables beforeVariables)
We log to a new file after every executed action. Information about result rows, variables and so on is stored in row buffers.- Parameters:
workflow- The workflowactionMeta- the action metadataaction- The finished actionresult- The result of the actionreferenceVariables- The set of reference variables. We can filter out interesting changes with this and avoid logging a lot of useless information.- Returns:
- The builder with the information
-
withExecutionType
public ExecutionDataBuilder withExecutionType(ExecutionType executionType)
-
withDataSetMeta
public ExecutionDataBuilder withDataSetMeta(ExecutionDataSetMeta dataSetMeta)
-
withFinished
public ExecutionDataBuilder withFinished(boolean finished)
-
withCollectionDate
public ExecutionDataBuilder withCollectionDate(Date collectionDate)
-
withParentId
public ExecutionDataBuilder withParentId(String parentId)
-
withOwnerId
public ExecutionDataBuilder withOwnerId(String ownerId)
-
withDataSets
public ExecutionDataBuilder withDataSets(Map<String,RowBuffer> dataSets)
-
withSetDescriptions
public ExecutionDataBuilder withSetDescriptions(Map<String,ExecutionDataSetMeta> setDescriptions)
-
addDataSets
public ExecutionDataBuilder addDataSets(Map<String,RowBuffer> dataSets)
-
addDataSet
public ExecutionDataBuilder addDataSet(String key, RowBuffer buffer)
-
addSetMeta
public ExecutionDataBuilder addSetMeta(Map<String,ExecutionDataSetMeta> setDescriptions)
-
addSetMeta
public ExecutionDataBuilder addSetMeta(String key, ExecutionDataSetMeta setMeta)
-
build
public ExecutionData build()
-
-