public class MongoUpdateBolt extends AbstractMongoBolt
Basic bolt for updating from MongoDB.
Note: Each MongoUpdateBolt defined in a topology is tied to a specific collection.
collector, mongoClient
Constructor and Description |
---|
MongoUpdateBolt(String url,
String collectionName,
QueryFilterCreator queryCreator,
MongoMapper mapper) |
Modifier and Type | Method and Description |
---|---|
void |
declareOutputFields(OutputFieldsDeclarer declarer) |
void |
execute(Tuple tuple) |
MongoUpdateBolt |
withUpsert(boolean upsert) |
cleanup, prepare
getComponentConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentConfiguration
public MongoUpdateBolt(String url, String collectionName, QueryFilterCreator queryCreator, MongoMapper mapper)
public void execute(Tuple tuple)
public MongoUpdateBolt withUpsert(boolean upsert)
public void declareOutputFields(OutputFieldsDeclarer declarer)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.