Constructs a JavaScript aggregator for the given Druid columns

Usage

javascript(fieldNames, fnAggregate, fnCombine, fnReset, name = "javascript")

Arguments

fieldNames
list of Druid columns fnAggregate depends on
fnAggregte
JavaScript function updating the current aggregate value
fnCombine
JavaScript function combining aggregate values
fnReset
JavaScript function returning the initial aggregate value

Description

Constructs a JavaScript aggregator for the given Druid columns