Package org.apache.heron.api.bolt
Class StatefulWindowedBoltExecutor<K extends Serializable,V extends Serializable>
- java.lang.Object
-
- org.apache.heron.api.bolt.WindowedBoltExecutor
-
- org.apache.heron.api.bolt.StatefulWindowedBoltExecutor<K,V>
-
- All Implemented Interfaces:
Serializable
,IBolt
,IRichBolt
,IComponent
,IStatefulComponent<Serializable,Serializable>
public class StatefulWindowedBoltExecutor<K extends Serializable,V extends Serializable> extends WindowedBoltExecutor
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.heron.api.bolt.WindowedBoltExecutor
LATE_TUPLE_FIELD, waterMarkEventGenerator
-
-
Constructor Summary
Constructors Constructor Description StatefulWindowedBoltExecutor(IStatefulWindowedBolt bolt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initState(State state)
initalize state that is partitioned by window internal and user definedvoid
preSave(String checkpointId)
This is a hook for the component to perform some actions just before the framework saves its state.-
Methods inherited from class org.apache.heron.api.bolt.WindowedBoltExecutor
boltExecute, cleanup, declareOutputFields, doPrepare, execute, getComponentConfiguration, getState, getTopologyTimeoutMillis, newWindowLifecycleListener, prepare, start, validate
-
-
-
-
Constructor Detail
-
StatefulWindowedBoltExecutor
public StatefulWindowedBoltExecutor(IStatefulWindowedBolt bolt)
-
-
Method Detail
-
initState
public void initState(State state)
initalize state that is partitioned by window internal and user defined- Specified by:
initState
in interfaceIStatefulComponent<K extends Serializable,V extends Serializable>
- Overrides:
initState
in classWindowedBoltExecutor
- Parameters:
state
-
-
preSave
public void preSave(String checkpointId)
Description copied from interface:IStatefulComponent
This is a hook for the component to perform some actions just before the framework saves its state.- Specified by:
preSave
in interfaceIStatefulComponent<K extends Serializable,V extends Serializable>
- Overrides:
preSave
in classWindowedBoltExecutor
- Parameters:
checkpointId
- the ID of the checkpoint
-
-