16 lines
636 B
C#
16 lines
636 B
C#
using System;
|
|
|
|
namespace BCG {
|
|
public class MaxStream : ViewStream {
|
|
public MaxStream(ViewStream stream, string outputCol, string inputCols) : this(stream, outputCol, inputCols.Split(' ')) {
|
|
}
|
|
public MaxStream(ViewStream stream, string outputCol, string[] inputCols) {
|
|
mySetRealSource(new GroupByStream(stream,
|
|
new MaxGroupByEvaluator(outputCol, inputCols)));
|
|
}
|
|
|
|
public MaxStream(ViewStream stream, string outputCol)
|
|
: this(new AddColumnsStream(stream, "fake_col: 0"), outputCol, new string[] { "fake_col" }) { }
|
|
}
|
|
}
|