Class MultiReducerProcessor
- java.lang.Object
-
- org.apache.storm.trident.planner.processor.MultiReducerProcessor
-
- All Implemented Interfaces:
Serializable
,TridentProcessor
,TupleReceiver
public class MultiReducerProcessor extends Object implements TridentProcessor
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MultiReducerProcessor(List<Fields> inputFields, MultiReducer reducer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
void
execute(ProcessorContext processorContext, String streamId, TridentTuple tuple)
void
finishBatch(ProcessorContext processorContext)
void
flush()
TridentTuple.Factory
getOutputFactory()
void
prepare(Map<String,Object> conf, TopologyContext context, TridentContext tridentContext)
void
startBatch(ProcessorContext processorContext)
-
-
-
Constructor Detail
-
MultiReducerProcessor
public MultiReducerProcessor(List<Fields> inputFields, MultiReducer reducer)
-
-
Method Detail
-
prepare
public void prepare(Map<String,Object> conf, TopologyContext context, TridentContext tridentContext)
- Specified by:
prepare
in interfaceTridentProcessor
-
cleanup
public void cleanup()
- Specified by:
cleanup
in interfaceTridentProcessor
-
startBatch
public void startBatch(ProcessorContext processorContext)
- Specified by:
startBatch
in interfaceTridentProcessor
-
execute
public void execute(ProcessorContext processorContext, String streamId, TridentTuple tuple)
- Specified by:
execute
in interfaceTupleReceiver
-
flush
public void flush()
- Specified by:
flush
in interfaceTupleReceiver
-
finishBatch
public void finishBatch(ProcessorContext processorContext)
- Specified by:
finishBatch
in interfaceTridentProcessor
-
getOutputFactory
public TridentTuple.Factory getOutputFactory()
- Specified by:
getOutputFactory
in interfaceTridentProcessor
-
-