Class Overwrite
java.lang.Object
org.apache.drill.metastore.mongo.operate.Overwrite
- All Implemented Interfaces:
MongoOperation
Mongo overwrite operation: overwrites data with given document based on given row filter.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Overwrite
public Overwrite(org.bson.Document data, org.bson.conversions.Bson filter)
-
-
Method Details
-
filter
public org.bson.conversions.Bson filter() -
data
public org.bson.Document data() -
execute
public void execute(com.mongodb.client.MongoCollection<org.bson.Document> collection) - Specified by:
execute
in interfaceMongoOperation
-