Package com.digitalpebble.storm.crawler.bolt

Examples of com.digitalpebble.storm.crawler.bolt.URLPartitionerBolt


    protected int run(String[] args) {
        TopologyBuilder builder = new TopologyBuilder();

        builder.setSpout("spout", new RandomURLSpout());

        builder.setBolt("partitioner", new URLPartitionerBolt())
                .shuffleGrouping("spout");

        builder.setBolt("fetch", new FetcherBolt()).fieldsGrouping(
                "partitioner", new Fields("key"));
View Full Code Here

TOP

Related Classes of com.digitalpebble.storm.crawler.bolt.URLPartitionerBolt

Copyright © 2018 www.massapicom. 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.