コード例 #1
0
 public AggregateOperation WithResultMode(AggregateResultMode value)
 {
     return((ResultMode == value) ? this : new Builder(this)
     {
         _resultMode = value
     }.Build());
 }
コード例 #2
0
 // constructors
 public Builder(AggregateOperation other)
 {
     _allowDiskUsage = other.AllowDiskUsage;
     _batchSize      = other.BatchSize;
     _collectionName = other.CollectionName;
     _databaseName   = other.DatabaseName;
     _resultMode     = other.ResultMode;
     _pipeline       = other.Pipeline;
 }
コード例 #3
0
 protected AggregateCursorOperationBase(
     bool?allowDiskUsage,
     int?batchSize,
     string collectionName,
     string databaseName,
     AggregateResultMode resultMode,
     IReadOnlyList <BsonDocument> pipeline)
     : base(
         allowDiskUsage,
         collectionName,
         databaseName,
         pipeline)
 {
     _batchSize  = batchSize;
     _resultMode = resultMode;
 }
コード例 #4
0
 private AggregateOperation(
     bool?allowDiskUsage,
     int?batchSize,
     string collectionName,
     string databaseName,
     AggregateResultMode resultMode,
     IReadOnlyList <BsonDocument> pipeline)
     : base(
         allowDiskUsage,
         batchSize,
         collectionName,
         databaseName,
         resultMode,
         pipeline)
 {
 }
コード例 #5
0
 // constructors
 protected AggregateCursorOperationBase(string databaseName, string collectionName, IEnumerable <BsonDocument> pipeline)
     : base(databaseName, collectionName, pipeline)
 {
     _resultMode = AggregateResultMode.Cursor;
 }
コード例 #6
0
 // constructors
 protected AggregateCursorOperationBase(CollectionNamespace collectionNamespace, IEnumerable <BsonDocument> pipeline, MessageEncoderSettings messageEncoderSettings)
     : base(collectionNamespace, pipeline, messageEncoderSettings)
 {
     _resultMode = AggregateResultMode.Cursor;
 }
コード例 #7
0
 // constructors
 protected AggregateCursorOperationBase(CollectionNamespace collectionNamespace, IEnumerable<BsonDocument> pipeline, MessageEncoderSettings messageEncoderSettings)
     : base(collectionNamespace, pipeline, messageEncoderSettings)
 {
     _resultMode = AggregateResultMode.Cursor;
 }