Class GroupedMultiReducerExecutor
java.lang.Object
org.apache.storm.trident.operation.impl.GroupedMultiReducerExecutor
- All Implemented Interfaces:
Serializable
,MultiReducer<Map<TridentTuple,
Object>>
public class GroupedMultiReducerExecutor
extends Object
implements MultiReducer<Map<TridentTuple,Object>>
- See Also:
-
Constructor Summary
ConstructorDescriptionGroupedMultiReducerExecutor
(GroupedMultiReducer reducer, List<Fields> groupFields, List<Fields> inputFields) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
void
complete
(Map<TridentTuple, Object> state, TridentCollector collector) void
execute
(Map<TridentTuple, Object> state, int streamIndex, TridentTuple full, TridentCollector collector) init
(TridentCollector collector) void
prepare
(Map<String, Object> conf, TridentMultiReducerContext context)
-
Constructor Details
-
GroupedMultiReducerExecutor
public GroupedMultiReducerExecutor(GroupedMultiReducer reducer, List<Fields> groupFields, List<Fields> inputFields)
-
-
Method Details
-
prepare
- Specified by:
prepare
in interfaceMultiReducer<Map<TridentTuple,
Object>>
-
init
- Specified by:
init
in interfaceMultiReducer<Map<TridentTuple,
Object>>
-
execute
public void execute(Map<TridentTuple, Object> state, int streamIndex, TridentTuple full, TridentCollector collector) - Specified by:
execute
in interfaceMultiReducer<Map<TridentTuple,
Object>>
-
complete
- Specified by:
complete
in interfaceMultiReducer<Map<TridentTuple,
Object>>
-
cleanup
public void cleanup()- Specified by:
cleanup
in interfaceMultiReducer<Map<TridentTuple,
Object>>
-