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 voidinitState(State state)initalize state that is partitioned by window internal and user definedvoidpreSave(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:
initStatein interfaceIStatefulComponent<K extends Serializable,V extends Serializable>- Overrides:
initStatein classWindowedBoltExecutor- Parameters:
state-
-
preSave
public void preSave(String checkpointId)
Description copied from interface:IStatefulComponentThis is a hook for the component to perform some actions just before the framework saves its state.- Specified by:
preSavein interfaceIStatefulComponent<K extends Serializable,V extends Serializable>- Overrides:
preSavein classWindowedBoltExecutor- Parameters:
checkpointId- the ID of the checkpoint
-
-