public Factory(
     String name,
     Map<String, String> bucketsPathsMap,
     Script script,
     ValueFormatter formatter,
     GapPolicy gapPolicy) {
   super(
       name, TYPE.name(), bucketsPathsMap.values().toArray(new String[bucketsPathsMap.size()]));
   this.bucketsPathsMap = bucketsPathsMap;
   this.script = script;
   this.formatter = formatter;
   this.gapPolicy = gapPolicy;
 }
 public static void registerStreams() {
   PipelineAggregatorStreams.registerStream(STREAM, TYPE.stream());
 }