public class Part03_AdvancedPrimitives2 {
public static void main(String[] args) throws Exception {
Config conf = new Config();
// conf.put(Config.TOPOLOGY_DEBUG,true);
LocalCluster cluster = new LocalCluster();
// This time we use a "FeederBatchSpout", a spout designed for testing.
FeederBatchSpout testSpout = new FeederBatchSpout(ImmutableList.of("name", "city", "age"));
cluster.submitTopology("advanced_primitives", conf, advancedPrimitives(testSpout));
// You can "hand feed" values to the topology by using this spout
testSpout.feed(ImmutableList.of(new Values("rose", "Shanghai", 32), new Values("mary", "Shanghai", 51), new Values("pere", "Jakarta", 65), new Values("Tom", "Jakarta", 10)));
}