javascript: Constructs a JavaScript aggregator for the given Druid...

Description Usage Arguments

Description

Constructs a JavaScript aggregator for the given Druid columns

Usage

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

Arguments

fieldNames

list of Druid columns fnAggregate depends on

fnCombine

JavaScript function combining aggregate values

fnReset

JavaScript function returning the initial aggregate value

fnAggregte

JavaScript function updating the current aggregate value


druid-io/RDruid documentation built on May 15, 2019, 2:54 p.m.