Click or drag to resize
BatchableSourceT Class
Represents a source of items that can be broken into batches.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.Core.MiscBatchableSourceT

Namespace: MongoDB.Driver.Core.Misc
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.1.0
Syntax
public sealed class BatchableSource<T>

Type Parameters

T
The type of the items.

The BatchableSourceT type exposes the following members.

Constructors
Methods
  NameDescription
Public methodClearBatch
Clears the most recent batch.
Public methodEndBatch(IReadOnlyListT)
Called when the last batch is complete.
Public methodEndBatch(IReadOnlyListT, BatchableSourceTOverflow)
Called when an intermediate batch is complete.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRemainingItems
Gets all the remaining items that haven't been previously consumed.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMoveNext
Moves to the next item in the source.
Public methodStartBatch
Starts a new batch.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
Properties
  NameDescription
Public propertyBatch
Gets the most recent batch.
Public propertyCurrent
Gets the current item.
Public propertyHasMore
Gets a value indicating whether there are more items.
Top
See Also