|
@@ -37,6 +37,19 @@ var DocumentSource = module.exports = function DocumentSource(expCtx){
|
|
|
|
|
|
|
|
}, klass = DocumentSource, base = Object, proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
|
|
}, klass = DocumentSource, base = Object, proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
|
|
|
|
|
|
|
|
|
|
+klass.EOF = (function() {
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Holds a Cursor and all associated state required to access the cursor.
|
|
|
|
|
+ * @class CursorWithContext
|
|
|
|
|
+ * @namespace mungedb-aggregate.pipeline.documentSources.CursorDocumentSource
|
|
|
|
|
+ * @module mungedb-aggregate
|
|
|
|
|
+ * @constructor
|
|
|
|
|
+ **/
|
|
|
|
|
+ var klass = function EOF(){
|
|
|
|
|
+ };
|
|
|
|
|
+ return klass;
|
|
|
|
|
+})();
|
|
|
|
|
+
|
|
|
/*
|
|
/*
|
|
|
class DocumentSource :
|
|
class DocumentSource :
|
|
|
public IntrusiveCounterUnsigned,
|
|
public IntrusiveCounterUnsigned,
|
|
@@ -67,8 +80,10 @@ proto.getPipelineStep = function getPipelineStep() {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
|
+ * Returns the next Document if there is one or DocumentSource.EOF if at EOF.
|
|
|
|
|
+ *
|
|
|
* some implementations do the equivalent of verify(!eof()) so check eof() first
|
|
* some implementations do the equivalent of verify(!eof()) so check eof() first
|
|
|
- * @method getNExt
|
|
|
|
|
|
|
+ * @method getNext
|
|
|
* @returns {Document} the current Document without advancing
|
|
* @returns {Document} the current Document without advancing
|
|
|
**/
|
|
**/
|
|
|
proto.getNext = function getNext(callback) {
|
|
proto.getNext = function getNext(callback) {
|