Class Overwrite

java.lang.Object
org.apache.drill.metastore.mongo.operate.Overwrite
All Implemented Interfaces:
MongoOperation

public class Overwrite extends Object implements MongoOperation
Mongo overwrite operation: overwrites data with given document based on given row filter.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Overwrite(org.bson.Document data, org.bson.conversions.Bson filter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bson.Document
     
    void
    execute(com.mongodb.client.MongoCollection<org.bson.Document> collection)
     
    org.bson.conversions.Bson
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface MongoOperation