Pipe assembly2 = new Pipe( "assembly2", assembly );
Fields groupingFields = new Fields( "date" );
assembly = new AggregateBy(
assembly,
groupingFields,
new SumBy( new Fields( "size" ), new Fields( "size" ), double.class ),
new SumBy( new Fields( "size" ), new Fields( "size2" ), double.class ),
new CountBy( new Fields( "sizes" ) ), new CountBy( new Fields( "sizes2" ) )
);
assembly2 = new AggregateBy(
assembly2,
groupingFields,
new SumBy( new Fields( "size" ), new Fields( "size" ), double.class ),
new SumBy( new Fields( "size" ), new Fields( "size2" ), double.class ),
new CountBy( new Fields( "sizes" ) ), new CountBy( new Fields( "sizes2" ) )