Package storm.trident.planner

Source Code of storm.trident.planner.BridgeReceiver

package storm.trident.planner;

import backtype.storm.coordination.BatchOutputCollector;
import storm.trident.tuple.ConsList;
import storm.trident.tuple.TridentTuple;


public class BridgeReceiver implements TupleReceiver {

    BatchOutputCollector _collector;
   
    public BridgeReceiver(BatchOutputCollector collector) {
        _collector = collector;
    }
   
    @Override
    public void execute(ProcessorContext context, String streamId, TridentTuple tuple) {
        _collector.emit(streamId, new ConsList(context.batchId, tuple));
    }
   
}
TOP

Related Classes of storm.trident.planner.BridgeReceiver

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.