use of com.alibaba.jstorm.elasticsearch.mapper.EsDefaultIndexMapper in project jstorm by alibaba.
the class TestSuite method testIndex.
@Test
public void testIndex() {
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("index-spout", new TestIndexSpout());
EsIndexBolt esIndexBolt = new EsIndexBolt(esConfig, new EsDefaultIndexMapper());
builder.setBolt("index-bolt", esIndexBolt).shuffleGrouping("index-spout");
cluster.submitTopology("Index-Test", conf, builder.createTopology());
}
Aggregations