public class WindowsStateUpdater extends Object implements StateUpdater<WindowsState>
StateUpdater<WindowState>
instance which removes successfully emitted triggers from store
Constructor and Description |
---|
WindowsStateUpdater(WindowsStoreFactory windowStoreFactory) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
When running in local mode, called when the local cluster is being shut down.
|
void |
prepare(Map conf,
TridentOperationContext context)
Called when the
Operation is first initialized. |
void |
updateState(WindowsState state,
List<TridentTuple> tuples,
TridentCollector collector) |
public WindowsStateUpdater(WindowsStoreFactory windowStoreFactory)
public void updateState(WindowsState state, List<TridentTuple> tuples, TridentCollector collector)
updateState
in interface StateUpdater<WindowsState>
public void prepare(Map conf, TridentOperationContext context)
Operation
Called when the Operation
is first initialized.
prepare
in interface Operation
conf
- the Storm configuration mapcontext
- the operation context which provides information such as the number of partitions in the stream, and the current partition index. It also provides methods for registering operation-specific metrics.TridentOperationContext
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.