public void Execute() { var response = DruidClient.Scan <QueryResult>(q => q .Filter(new SelectorFilter(Wikiticker.Dimensions.CountryCode, "US")) .DataSource(Wikiticker.DataSource) .Interval(FromDate, ToDate) .Limit(3) ); _results = response.Data.SelectMany(x => x.Events).ToList(); }
public void Execute() { var response = DruidClient.Scan <QueryResult>(q => q .VirtualColumns(new [] { new ExpressionVirtualColumn( VirtualColumnName, "concat(" + Wikipedia.Dimensions.CityName + " + ', ' + " + Wikipedia.Dimensions.CountryName + ")", ExpressionOutputType.STRING ) }) .Filter(new SelectorFilter(Wikipedia.Dimensions.CountryCode, "US")) .DataSource(Wikipedia.DataSource) .Interval(FromDate, ToDate) .Limit(3) ); _results = response.Data.SelectMany(x => x.Events).ToList(); }