public class GroupedMultiReducerExecutor extends Object implements MultiReducer<Map<TridentTuple,Object>>
Constructor and Description |
---|
GroupedMultiReducerExecutor(GroupedMultiReducer reducer,
List<Fields> groupFields,
List<Fields> inputFields) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
void |
complete(Map<TridentTuple,Object> state,
TridentCollector collector) |
void |
execute(Map<TridentTuple,Object> state,
int streamIndex,
TridentTuple full,
TridentCollector collector) |
Map<TridentTuple,Object> |
init(TridentCollector collector) |
void |
prepare(Map conf,
TridentMultiReducerContext context) |
public GroupedMultiReducerExecutor(GroupedMultiReducer reducer, List<Fields> groupFields, List<Fields> inputFields)
public void prepare(Map conf, TridentMultiReducerContext context)
prepare
in interface MultiReducer<Map<TridentTuple,Object>>
public Map<TridentTuple,Object> init(TridentCollector collector)
init
in interface MultiReducer<Map<TridentTuple,Object>>
public void execute(Map<TridentTuple,Object> state, int streamIndex, TridentTuple full, TridentCollector collector)
execute
in interface MultiReducer<Map<TridentTuple,Object>>
public void complete(Map<TridentTuple,Object> state, TridentCollector collector)
complete
in interface MultiReducer<Map<TridentTuple,Object>>
public void cleanup()
cleanup
in interface MultiReducer<Map<TridentTuple,Object>>
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.