Bulk class abstract
- Implementers
Constructors
-
Bulk(DbCollection collection, {BulkOptions? bulkOptions, Map<
String, Object> ? rawOptions})
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
- hashCode → int
-
The hash code for this object.
no setterinherited
- ids ↔ List
-
getter/setter pair
- operationInputIndex ↔ int
-
getter/setter pair
-
options
↔ Map<
String, Object> -
getter/setter pairinherited
-
overallInsertDocuments
↔ List<
Map< String, dynamic> > -
getter/setter pair
- readPreference ↔ ReadPreference?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- session ↔ Object?
-
getter/setter pairinherited
Methods
-
$buildCommand(
) → Map< String, Object> -
addCommand(
Map< String, Object> command) → void -
clearSession(
) → void -
inherited
-
deleteMany(
DeleteManyStatement deleteRequest) → void - deleteMany deletes all documents in the collection that match the filter.
-
deleteManyFromMap(
Map< String, Object> docMap, {int? index}) → void - Same as deleteMany but in Map format: Schema: { deleteMany : { "filter" :
-
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.
-
deleteOneFromMap(
Map< String, Object> docMap, {int? index}) → void - Same as deleteOne but in Map format: Schema: { deleteOne : { "filter" :
-
execute(
{bool skipStateCheck = false}) → Future< Map< String, Object> > -
executeBulk(
) → Future< List< Map< >String, dynamic> > -
executeDocument(
) → Future< BulkWriteResult> -
getBulkCommands(
) → List< Map< String, Object> > -
getBulkInputOrigins(
) → List< Map< int, int> > -
hasAspect(
Aspect aspect) → bool -
inherited
-
insertMany(
List< Map< documents) → voidString, dynamic> > - Inserts nultiple documents into the collection.
-
insertOne(
Map< String, dynamic> document) → void - Inserts a single document into the collection.
-
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.
-
replaceOneFromMap(
Map< String, Object> docMap, {int? index}) → void - Same as replaceOne but in Map format. Schema: { replaceOne : { "filter" :
-
splitCommands(
Map< String, Object> command) → List<Map< String, Object> > - Split the command if the number of documents exceed the maxWriteBatchSixe
-
splitInputOrigins(
Map< int, int> origins, int commandsLength) → List<Map< int, int> > -
toString(
) → String -
A string representation of this object.
inherited
-
updateMany(
UpdateManyStatement updateRequest) → void - updateMany updates all documents in the collection that match the filter.
-
updateManyFromMap(
Map< String, Object> docMap, {int? index}) → void - Same as updateMany but in Map format. Schema: { updateMany : { "filter" :
-
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.
-
updateOneFromMap(
Map< String, Object> docMap, {int? index}) → void - Same as updateOne but in Map format. Schema: { updateOne : { "filter":
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited