示例#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);
示例#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)));
示例#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)));
示例#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);
示例#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())); });