Переглянути джерело

Updated document source namespace name. refs #997, #998

http://source.rd.rcg.local/trac/eagle6/changeset/1323/Eagle6_SVN
Philip Murray 13 роки тому
батько
коміт
eb444d67a5
1 змінених файлів з 12 додано та 2 видалено
  1. 12 2
      lib/pipeline/documentSources/DocumentSource.js

+ 12 - 2
lib/pipeline/documentsource/DocumentSource.js → lib/pipeline/documentSources/DocumentSource.js

@@ -203,7 +203,7 @@ public:
      * @param	{Object} deps	set (unique array) of strings
      * @returns	{Object}	BSONObj
     **/
-    proto.depsToProjection = function depsToProjection(deps) {
+    klass.depsToProjection = function depsToProjection(deps) {
         var bb = {};
         if (deps._id === undefined)
             bb._id = 0;
@@ -247,12 +247,22 @@ public:
      * to add this object to a pipeline being represented in BSON.
      * 
      * @method	sourceToBson
-     * @param	{Array} pBuilder	BSONObjBuilder: a blank object builder to write to
+     * @param	{Object} pBuilder	BSONObjBuilder: a blank object builder to write to
      * @param	{Boolean}	explain	create explain output
     **/
     proto.sourceToBson = function sourceToBson(pBuilder, explain) {
 		throw new Error("not implemented");
     };
+    
+    /**
+     * Reset the document source so that it is ready for a new stream of data.
+     * Note that this is a deviation from the mongo implementation.
+     * 
+     * @method	reset
+    **/
+    proto.reset = function reset(){
+		throw new Error("not implemented");
+    };
 
 	return klass;
 })();