S - schema data typeD - data record data typepublic interface ForkOperator<S,D> extends Closeable
| Modifier and Type | Method and Description |
|---|---|
List<Boolean> |
forkDataRecord(WorkUnitState workUnitState,
D input)
Get a list of
Booleans indicating if the record should go to each branch. |
List<Boolean> |
forkSchema(WorkUnitState workUnitState,
S input)
Get a list of
Booleans indicating if the schema should go to each branch. |
int |
getBranches(WorkUnitState workUnitState)
Get the number of branches after the fork.
|
void |
init(WorkUnitState workUnitState)
Initialize this
ForkOperator. |
void init(WorkUnitState workUnitState) throws Exception
ForkOperator.workUnitState - WorkUnitState carrying the configurationExceptionint getBranches(WorkUnitState workUnitState)
workUnitState - WorkUnitState carrying the configurationList<Boolean> forkSchema(WorkUnitState workUnitState, S input)
Booleans indicating if the schema should go to each branch.workUnitState - WorkUnitState carrying the configurationinput - input schemaBooleansList<Boolean> forkDataRecord(WorkUnitState workUnitState, D input)
Booleans indicating if the record should go to each branch.workUnitState - WorkUnitState carrying the configurationinput - input data recordBooleans