public class ArtificialListStateBuilder<IN,STATE> extends ArtificialStateBuilder<IN>
ArtificialListStateBuilder
for user operator and keyed state.Constructor and Description |
---|
ArtificialListStateBuilder(String stateName,
JoinFunction<IN,Iterable<STATE>,List<STATE>> keyedStateGenerator,
JoinFunction<IN,Iterable<STATE>,List<STATE>> operatorStateGenerator,
ListStateDescriptor<STATE> listStateDescriptor) |
Modifier and Type | Method and Description |
---|---|
void |
artificialStateForElement(IN event)
Manipulate the state for an input element.
|
void |
initialize(FunctionInitializationContext initializationContext)
Registers the state.
|
getStateName
public ArtificialListStateBuilder(String stateName, JoinFunction<IN,Iterable<STATE>,List<STATE>> keyedStateGenerator, JoinFunction<IN,Iterable<STATE>,List<STATE>> operatorStateGenerator, ListStateDescriptor<STATE> listStateDescriptor)
public void artificialStateForElement(IN event) throws Exception
ArtificialStateBuilder
artificialStateForElement
in class ArtificialStateBuilder<IN>
event
- the current input element.Exception
public void initialize(FunctionInitializationContext initializationContext) throws Exception
ArtificialStateBuilder
initialize
in class ArtificialStateBuilder<IN>
initializationContext
- the state initialization context, provided by the user function.Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.