public class AggregateProcessor extends Object implements TridentProcessor
Constructor and Description |
---|
AggregateProcessor(Fields inputFields,
Aggregator agg) |
Modifier and Type | Method and 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) |
public AggregateProcessor(Fields inputFields, Aggregator agg)
public void prepare(Map<String,Object> conf, TopologyContext context, TridentContext tridentContext)
prepare
in interface TridentProcessor
public void cleanup()
cleanup
in interface TridentProcessor
public void startBatch(ProcessorContext processorContext)
startBatch
in interface TridentProcessor
public void execute(ProcessorContext processorContext, String streamId, TridentTuple tuple)
execute
in interface TupleReceiver
public void flush()
flush
in interface TupleReceiver
public void finishBatch(ProcessorContext processorContext)
finishBatch
in interface TridentProcessor
public TridentTuple.Factory getOutputFactory()
getOutputFactory
in interface TridentProcessor
Copyright © 2019 The Apache Software Foundation. All rights reserved.