Example #1
0
 public ExploreResult(Guid explorationId, Exploration exploration, ExploreParams exploreParams)
 {
     Id            = explorationId;
     Status        = exploration.Status;
     DataSource    = exploreParams.DataSource;
     Table         = exploreParams.Table;
     SampleData    = exploration.GetSampleData().Select(col => col.ToList()).ToList();
     ColumnMetrics = exploration.ColumnExplorations.Select(ce => new ColumnMetricsType(ce)).ToList();
     Correlations  = exploration.MultiColumnExploration?.PublishedMetrics
                     .Where(m => m.Name != CorrelatedSamples.MetricName)
                     .ToList()
                     ?? new List <ExploreMetric>();
 }
Example #2
0
 public ExploreResult(
     Guid explorationId,
     ExplorationStatus status,
     ExploreParams exploreParams)
 {
     Id            = explorationId;
     Status        = status;
     DataSource    = exploreParams.DataSource;
     Table         = exploreParams.Table;
     ColumnMetrics = exploreParams.Columns.Select(c => new ColumnMetricsType(c)).ToList();
     SampleData    = new List <List <object?> >();
     Correlations  = new List <ExploreMetric>();
 }