edu.byu.hbll.mongo.BatcherFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongo Show documentation
Show all versions of mongo Show documentation
Utility to optimize large-scale write operations in a Mongo database
The newest version!
package edu.byu.hbll.mongo;
import org.bson.Document;
import com.mongodb.client.model.WriteModel;
/**
* Functional interface for preparing a BSON Document to update a MongoCollection.
*
*/
@FunctionalInterface
public interface BatcherFunction {
/**
* Converts a BSON Document to a WriteModel that can be used to update a MongoCollection.
*
* @param doc BSON Document that describes the update.
* @return WriteModel representing the update operation.
*/
WriteModel prepareWriteModel(Document doc);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy