浏览代码

Merge pull request #102 from RiveraGroup/feature/mongo_2.6.5_documentSource_DocumentSource

EAGLESIX-812: Port DocumentSource to 2.6.5
Chris Sexton 11 年之前
父节点
当前提交
ea906b3ce9

+ 4 - 2
lib/pipeline/documentSources/DocumentSource.js

@@ -169,8 +169,10 @@ proto.optimize = function optimize() {
 
 
 klass.GetDepsReturn = {
 klass.GetDepsReturn = {
 	NOT_SUPPORTED: "NOT_SUPPORTED", // This means the set should be ignored
 	NOT_SUPPORTED: "NOT_SUPPORTED", // This means the set should be ignored
-	EXHAUSTIVE: "EXHAUSTIVE", // This means that everything needed should be in the set
-	SEE_NEXT: "SEE_NEXT" // Add the next Source's deps to the set
+	SEE_NEXT: "SEE_NEXT", // Add the next Source's deps to the set
+	EXHAUSTIVE_FIELDS:"EXHAUSTIVE_FIELDS", // Later stages won"t need more fields from input
+	EXHAUSTIVE_META: "EXHAUSTIVE_META", // Later stages won"t need more metadata from input
+	EXHAUSTIVE_ALL: "EXHAUSTIVE_ALL" // Later stages won"t need either NOTE: This is an | of FIELDS and META in mongo C++
 };
 };
 
 
 /**
 /**

+ 2 - 0
test/lib/pipeline/documentSources/DocumentSource.js

@@ -7,6 +7,8 @@ module.exports = {
 
 
 	"DocumentSource": {
 	"DocumentSource": {
 
 
+		"should be tested via subclasses": function() {}
+
 	}
 	}
 
 
 };
 };