public void save_and_retrieve_AnalyzerContexts() => Evaluate(_session, (context, repository) => { ResultKey resultKey = new ResultKey(DATE_ONE, new Dictionary <string, string>(REGION_EU)); repository.Save(resultKey, context); AnalyzerContext loadResults = repository.LoadByKey(resultKey).Value; DataFrame loadedResultsAsDataFrame = loadResults.SuccessMetricsAsDataFrame(_session, Enumerable.Empty <IAnalyzer <IMetric> >()); DataFrame resultAsDataFrame = context.SuccessMetricsAsDataFrame(_session, Enumerable.Empty <IAnalyzer <IMetric> >()); AssertSameRows(loadedResultsAsDataFrame, resultAsDataFrame); loadResults .SuccessMetricsAsJson(Enumerable.Empty <IAnalyzer <IMetric> >()) .ShouldBe(context .SuccessMetricsAsJson(Enumerable.Empty <IAnalyzer <IMetric> >())); });
public DataFrame SuccessMetricsAsDataFrame(SparkSession session, IEnumerable <IAnalyzer <IMetric> > forAnalyzers) { AnalyzerContext metricsAsAnalyzerContext = new AnalyzerContext(Metrics); return(metricsAsAnalyzerContext.SuccessMetricsAsDataFrame(session, forAnalyzers)); }