T
- the type of the object returned by the join method. For the outer fork
created by the WorkflowConfigurer
, join method returns WorkflowConfigurer
.
For the nested fork created by the WorkflowForkConfigurer
, join method
returns WorkflowForkConfigurer
of the parent fork.public interface WorkflowForkConfigurer<T>
Workflow
.Modifier and Type | Method and Description |
---|---|
WorkflowForkConfigurer<T> |
addAction(CustomAction action)
Adds custom action a a next sequential step to the current branch of the
WorkflowForkNode |
WorkflowForkConfigurer<T> |
addMapReduce(String mapReduce)
Adds a MapReduce program as a next sequential step to the current branch of the
WorkflowForkNode |
WorkflowForkConfigurer<T> |
addSpark(String spark)
Adds a Spark program as a next sequential step to the current branch of the
WorkflowForkNode |
WorkflowForkConfigurer<T> |
also()
Adds a branch to the
WorkflowForkNode |
WorkflowConditionConfigurer<? extends WorkflowForkConfigurer<T>> |
condition(Condition condition)
Adds a condition to the current branch of the fork.
|
WorkflowConditionConfigurer<? extends WorkflowForkConfigurer<T>> |
condition(Predicate<WorkflowContext> predicate)
Adds a condition to the current branch of the fork.
|
WorkflowForkConfigurer<? extends WorkflowForkConfigurer<T>> |
fork()
Adds a nested fork to the current fork
|
T |
join()
Joins the current fork
|
WorkflowForkConfigurer<T> addMapReduce(String mapReduce)
WorkflowForkNode
mapReduce
- the name of the MapReduce program to be addedWorkflowForkConfigurer<T> addSpark(String spark)
WorkflowForkNode
spark
- the name of the Spark program to be addedWorkflowForkConfigurer<T> addAction(CustomAction action)
WorkflowForkNode
action
- CustomAction
to be added to the forkWorkflowForkConfigurer<? extends WorkflowForkConfigurer<T>> fork()
WorkflowConditionConfigurer<? extends WorkflowForkConfigurer<T>> condition(Predicate<WorkflowContext> predicate)
predicate
- the Predicate
to be evaluated at the condition nodeWorkflowConditionConfigurer<? extends WorkflowForkConfigurer<T>> condition(Condition condition)
condition
- the Condition
to be evaluated at the condition nodeWorkflowForkConfigurer<T> also()
WorkflowForkNode
T join()
Copyright © 2022 Cask Data, Inc. Licensed under the Apache License, Version 2.0.