@Override
public MongoClient bulkWriteWithOptions(String collection, List<BulkOperation> operations, BulkWriteOptions bulkWriteOptions, Handler<AsyncResult<MongoClientBulkWriteResult>> resultHandler) {
requireNonNull(collection, "collection cannot be null");
requireNonNull(operations, "operations cannot be null");
requireNonNull(bulkWriteOptions, "bulkWriteOptions cannot be null");
requireNonNull(resultHandler, "resultHandler cannot be null");
MongoCollection<JsonObject> coll = getCollection(collection, bulkWriteOptions.getWriteOption());
List<WriteModel<JsonObject>> bulkOperations = convertBulkOperations(operations);
coll.bulkWrite(bulkOperations, mongoBulkWriteOptions(bulkWriteOptions),
toMongoClientBulkWriteResult(resultHandler));
return this;
}
MongoClientImpl.java 文件源码
java
阅读 46
收藏 0
点赞 0
评论 0
项目:vertx-mongo-client
作者:
评论列表
文章目录