Search in sources :

Example 1 with SolrUpdateBolt

use of org.apache.storm.solr.bolt.SolrUpdateBolt in project storm by apache.

the class SolrFieldsTopology method getTopology.

protected StormTopology getTopology() throws IOException {
    TopologyBuilder builder = new TopologyBuilder();
    builder.setSpout("SolrFieldsSpout", new SolrFieldsSpout());
    builder.setBolt("SolrUpdateBolt", new SolrUpdateBolt(getSolrConfig(), getSolrMapper(), getSolrCommitStgy())).shuffleGrouping("SolrFieldsSpout");
    return builder.createTopology();
}
Also used : TopologyBuilder(org.apache.storm.topology.TopologyBuilder) SolrUpdateBolt(org.apache.storm.solr.bolt.SolrUpdateBolt) SolrFieldsSpout(org.apache.storm.solr.spout.SolrFieldsSpout)

Example 2 with SolrUpdateBolt

use of org.apache.storm.solr.bolt.SolrUpdateBolt in project storm by apache.

the class SolrJsonTopology method getTopology.

protected StormTopology getTopology() throws IOException {
    TopologyBuilder builder = new TopologyBuilder();
    builder.setSpout("SolrJsonSpout", new SolrJsonSpout());
    builder.setBolt("SolrUpdateBolt", new SolrUpdateBolt(getSolrConfig(), getSolrMapper(), getSolrCommitStgy())).shuffleGrouping("SolrJsonSpout");
    return builder.createTopology();
}
Also used : TopologyBuilder(org.apache.storm.topology.TopologyBuilder) SolrUpdateBolt(org.apache.storm.solr.bolt.SolrUpdateBolt) SolrJsonSpout(org.apache.storm.solr.spout.SolrJsonSpout)

Aggregations

SolrUpdateBolt (org.apache.storm.solr.bolt.SolrUpdateBolt)2 TopologyBuilder (org.apache.storm.topology.TopologyBuilder)2 SolrFieldsSpout (org.apache.storm.solr.spout.SolrFieldsSpout)1 SolrJsonSpout (org.apache.storm.solr.spout.SolrJsonSpout)1