|
@@ -1,12 +1,17 @@
|
|
|
-var AccumulatorSingleValue = module.exports = (function(){
|
|
|
|
|
|
|
+var SingleValueAccumulator = module.exports = (function(){
|
|
|
|
|
|
|
|
// Constructor
|
|
// Constructor
|
|
|
- /*
|
|
|
|
|
- This isn't a finished accumulator, but rather a convenient base class
|
|
|
|
|
- for others such as $first, $last, $max, $min, and similar. It just
|
|
|
|
|
- provides a holder for a single Value, and the getter for that. The
|
|
|
|
|
- holder is protected so derived classes can manipulate it.
|
|
|
|
|
- */
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * This isn't a finished accumulator, but rather a convenient base class
|
|
|
|
|
+ * for others such as $first, $last, $max, $min, and similar. It just
|
|
|
|
|
+ * provides a holder for a single Value, and the getter for that. The
|
|
|
|
|
+ * holder is protected so derived classes can manipulate it.
|
|
|
|
|
+ *
|
|
|
|
|
+ * @class SingleValueAccumulator
|
|
|
|
|
+ * @namespace munge.pipeline.accumulators
|
|
|
|
|
+ * @module munge
|
|
|
|
|
+ * @constructor
|
|
|
|
|
+ **/
|
|
|
|
|
|
|
|
var klass = module.exports = function AccumulatorSingleValue(value){
|
|
var klass = module.exports = function AccumulatorSingleValue(value){
|
|
|
if(arguments.length > 1 ) throw new Error("expects a single value");
|
|
if(arguments.length > 1 ) throw new Error("expects a single value");
|