druid-query
Version:
Simple querying for Druid
19 lines (15 loc) • 390 B
JavaScript
var FieldError = require('../../errors').FieldError
/**
* Sum of values as 64bit float
*
* @see http://druid.io/docs/0.6.120/Aggregations.html
*
* @param {string} fieldName name of the metric column to sum over
*/
module.exports = function doubleSum(fieldName) {
if (!fieldName) {
throw new FieldError('Missing metric column')
}
this.fieldName = fieldName
}