FixedBatchSpout spout = new FixedBatchSpout(new Fields("shortid", "url",
"user", "date"), 3, v0, v1, v2, v3, v4);
spout.setCycle(true);
// Trident updater
TridentConfig updateConfig = new TridentConfig("shorturl", "shortid");
updateConfig.setBatch(false);
updateConfig.addColumn("data", "url");
updateConfig.addColumn("data", "user");
updateConfig.addColumn("data", "date");
TridentTopology topology = new TridentTopology();
topology.newStream("shorturls", spout).partitionPersist(
new HBaseValueFactory(updateConfig),
new Fields("shortid", "url", "user", "date"), new HBaseValueUpdater());