UnorderedBulk class

Inheritance

Constructors

UnorderedBulk(DbCollection collection, {WriteConcern? writeConcern, Map<String, Object>? rawOptions, bool? bypassDocumentValidation})

Properties

canRetryRead → bool
no setterinherited
collection ↔ DbCollection?
getter/setter pairinherited
command ↔ Map<String, Object>?
getter/setter pairinherited
connection ↔ Connection?
getter/setter pairinherited
db ↔ Db
getter/setter pairinherited
deleteCommand ↔ Map<String, Object>
This Map contains the delete commands. Ex. {'delete': 'abc', 'deletes': {'filter': {'a': 1}}} This could be the result of the following: collection.bulkWrite([ {'insertOne': {'document: {'a', 1}}}, {'insertMany': {'documents': {'a', 2}, {'a', 3}}}, {'deleteOne': {'filter': {'a': 1}}} {'updateOne': {'filter': {'a': 1}, 'update': {'a': 10}}} {'insertOne': {'document: {'a', 4}}}, ])
getter/setter pair
deleteCommandsOrigin ↔ Map<int, int>
this contains the original delete command reference stored as pairs made of {
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
ids ↔ List
getter/setter pairinherited
insertCommand ↔ Map<String, Object>
This Map contains the insert commands. Ex. {'insert': 'abc', 'documents': {'a', 1}, {'a', 2}, {'a', 3}, {'a', 4}} This could be the result of the following: collection.bulkWrite([ {'insertOne': {'document: {'a', 1}}}, {'insertMany': {'documents': {'a', 2}, {'a', 3}}}, {'deleteOne': {'filter': {'a': 1}}} {'updateOne': {'filter': {'a': 1}, 'update': {'a': 10}}} {'insertOne': {'document: {'a', 4}}}, ])
getter/setter pair
insertCommandsOrigin ↔ Map<int, int>
this contains the original insert command reference stored as pairs made of {
getter/setter pair
operationInputIndex ↔ int
getter/setter pairinherited
options ↔ Map<String, Object>
getter/setter pairinherited
overallInsertDocuments ↔ List<Map<String, dynamic>>
getter/setter pairinherited
readPreference ↔ ReadPreference?
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
session ↔ Object?
getter/setter pairinherited
updateCommand ↔ Map<String, Object>
This Map contains the update commands. Ex. {'update': 'abc', 'updates': {'filter': {'a': 1}, 'update': {'a': 10}}} This could be the result of the following: collection.bulkWrite([ {'insertOne': {'document: {'a', 1}}}, {'insertMany': {'documents': {'a', 2}, {'a', 3}}}, {'deleteOne': {'filter': {'a': 1}}} {'updateOne': {'filter': {'a': 1}, 'update': {'a': 10}}} {'insertOne': {'document: {'a', 4}}}, ])
getter/setter pair
updateCommandsOrigin ↔ Map<int, int>
this contains the original update command reference stored as pairs made of {
getter/setter pair

Methods

$buildCommand() → Map<String, Object>
inherited
addCommand(Map<String, Object> command) → void
override
clearSession() → void
inherited
deleteMany(DeleteManyStatement deleteRequest) → void
deleteMany deletes all documents in the collection that match the filter.
inherited
deleteManyFromMap(Map<String, Object> docMap, {int? index}) → void
Same as deleteMany but in Map format: Schema: { deleteMany : { "filter" :
inherited
deleteOne(DeleteOneStatement deleteRequest) → void
deleteOne deletes a single document in the collection that match the filter. If multiple documents match, deleteOne will delete the first matching document only.
inherited
deleteOneFromMap(Map<String, Object> docMap, {int? index}) → void
Same as deleteOne but in Map format: Schema: { deleteOne : { "filter" :
inherited
execute({bool skipStateCheck = false}) → Future<Map<String, Object>>
inherited
executeBulk() → Future<List<Map<String, dynamic>>>
inherited
executeDocument() → Future<BulkWriteResult>
inherited
getBulkCommands() → List<Map<String, Object>>
override
getBulkInputOrigins() → List<Map<int, int>>
override
hasAspect(Aspect aspect) → bool
inherited
insertMany(List<Map<String, dynamic>> documents) → void
Inserts nultiple documents into the collection.
inherited
insertOne(Map<String, dynamic> document) → void
Inserts a single document into the collection.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processOptions(Map<String, dynamic> command) → void
inherited
replaceOne(ReplaceOneStatement replaceRequest) → void
replaceOne replaces a single document in the collection that matches the filter. If multiple documents match, replaceOne will replace the first matching document only.
inherited
replaceOneFromMap(Map<String, Object> docMap, {int? index}) → void
Same as replaceOne but in Map format. Schema: { replaceOne : { "filter" :
inherited
splitCommands(Map<String, Object> command) → List<Map<String, Object>>
Split the command if the number of documents exceed the maxWriteBatchSixe
inherited
splitInputOrigins(Map<int, int> origins, int commandsLength) → List<Map<int, int>>
inherited
toString() → String
A string representation of this object.
inherited
updateMany(UpdateManyStatement updateRequest) → void
updateMany updates all documents in the collection that match the filter.
inherited
updateManyFromMap(Map<String, Object> docMap, {int? index}) → void
Same as updateMany but in Map format. Schema: { updateMany : { "filter" :
inherited
updateOne(UpdateOneStatement updateRequest) → void
updateOne updates a single document in the collection that matches the filter. If multiple documents match, updateOne will update the first matching document only.
inherited
updateOneFromMap(Map<String, Object> docMap, {int? index}) → void
Same as updateOne but in Map format. Schema: { updateOne : { "filter":
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited