Example #1
0
 /// <inheritdoc cref="ScanShareableAnalyzer{S,M}.FromAggregationResult"/>
 protected override Option <NumMatchesAndCount> FromAggregationResult(Row result, int offset) =>
 AnalyzersExt.IfNoNullsIn(result, offset,
                          () => new NumMatchesAndCount(
                              (int)result.Get(offset), (int)result.Get(offset + 1)), 2);
Example #2
0
 /// <inheritdoc cref="StandardScanShareableAnalyzer{S}.FromAggregationResult"/>
 protected override Option <SumState> FromAggregationResult(Row result, int offset) =>
 AnalyzersExt.IfNoNullsIn(result, offset, () => new SumState(result.GetAs <double>(offset)));
Example #3
0
 /// <inheritdoc cref="StandardScanShareableAnalyzer{S}.FromAggregationResult"/>
 protected override Option <NumMatches> FromAggregationResult(Row result, int offset) =>
 AnalyzersExt.IfNoNullsIn(result, offset,
                          () => new NumMatches(result.GetAs <int>(offset)));
Example #4
0
 /// <inheritdoc cref="ScanShareableAnalyzer{S,M}.FromAggregationResult"/>
 protected override Option <MeanState> FromAggregationResult(Row result, int offset) =>
 AnalyzersExt.IfNoNullsIn(result, offset,
                          () => new MeanState((double)result.Get(offset),
                                              (int)result.Get(offset + 1)), 2);
Example #5
0
 /// <inheritdoc cref="ScanShareableAnalyzer{S,M}.FromAggregationResult"/>.
 protected override Option <DataTypeHistogram> FromAggregationResult(Row result, int offset) =>
 AnalyzersExt.IfNoNullsIn(result, offset,
                          () => { return(DataTypeHistogram.FromArray(result.Values.Select(value => (int)value).ToArray())); });