@Inject public AggregatorParsers(Set<Aggregator.Parser> aggParsers,Set<PipelineAggregator.Parser> pipelineAggregatorParsers){
  MapBuilder<String,Aggregator.Parser> aggParsersBuilder=MapBuilder.newMapBuilder();
  for (  Aggregator.Parser parser : aggParsers) {
    aggParsersBuilder.put(parser.type(),parser);
  }
  this.aggParsers=aggParsersBuilder.immutableMap();
  MapBuilder<String,PipelineAggregator.Parser> pipelineAggregatorParsersBuilder=MapBuilder.newMapBuilder();
  for (  PipelineAggregator.Parser parser : pipelineAggregatorParsers) {
    pipelineAggregatorParsersBuilder.put(parser.type(),parser);
  }
  this.pipelineAggregatorParsers=pipelineAggregatorParsersBuilder.immutableMap();
}

@ Inject public AggregatorParsers ( Set < Aggregator . Parser > aggParsers , Set < PipelineAggregator . Parser > pipelineAggregatorParsers ) { MapBuilder < String , Aggregator . Parser > aggParsersBuilder = MapBuilder . newMapBuilder ( ) ; for ( Aggregator . Parser parser : aggParsers ) { aggParsersBuilder . put ( parser . type ( ) , parser ) ; } this . aggParsers = aggParsersBuilder . immutableMap ( ) ; MapBuilder < String , PipelineAggregator . Parser > pipelineAggregatorParsersBuilder = MapBuilder . newMapBuilder ( ) ; for ( PipelineAggregator . Parser parser : pipelineAggregatorParsers ) { pipelineAggregatorParsersBuilder . put ( parser . type ( ) , parser ) ; } this . pipelineAggregatorParsers = pipelineAggregatorParsersBuilder . immutableMap ( ) ; }
constructs the aggregatorparsers out of all the given parsers
