|
@@ -57,20 +57,6 @@ proto.getNext = function getNext(callback) {
|
|
|
return this.source.getNext();
|
|
return this.source.getNext();
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-/**
|
|
|
|
|
- * Create an object that represents the document source. The object
|
|
|
|
|
- * will have a single field whose name is the source's name. This
|
|
|
|
|
- * will be used by the default implementation of addToJsonArray()
|
|
|
|
|
- * to add this object to a pipeline being represented in JSON.
|
|
|
|
|
- *
|
|
|
|
|
- * @method sourceToJson
|
|
|
|
|
- * @param {Object} builder JSONObjBuilder: a blank object builder to write to
|
|
|
|
|
- * @param {Boolean} explain create explain output
|
|
|
|
|
- **/
|
|
|
|
|
-proto.sourceToJson = function sourceToJson(builder, explain) {
|
|
|
|
|
- builder.$limit = this.limit;
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* Creates a new LimitDocumentSource with the input number as the limit
|
|
* Creates a new LimitDocumentSource with the input number as the limit
|
|
|
* @param {Number} JsonElement this thing is *called* Json, but it expects a number
|
|
* @param {Number} JsonElement this thing is *called* Json, but it expects a number
|