随笔分类 -  04. 心得分享

摘要:上篇博文介绍了StreamInsight基础查询操作中的聚合部分。这篇文章将主要介绍如何在StreamInsight查询中使用用户自定义聚合。 测试数据准备 为了方便测试查询,我们首先准备一个静态的测试数据源:var weatherData = new[]{ new { Timestamp = new DateTime(2010, 1, 1, 0, 00, 00, DateTimeKind.Utc), Temperature = -9.0, StationCode = 71395, WindSpeed = 4}, new { Timestamp = new DateTime(20... 阅读全文
posted @ 2011-08-22 17:37 StreamInsight 阅读(1173) 评论(1) 推荐(2)
摘要:上篇博文介绍了StreamInsight基础查询操作中的过滤部分。这篇文章将主要介绍StreamInsight基础查询操作中的聚合部分。 测试数据准备 为了方便测试查询,我们首先准备一个静态的测试数据源:var weatherData = new[]{ new { Timestamp = new DateTime(2010, 1, 1, 0, 00, 00, DateTimeKind.Utc), Temperature = -9.0, StationCode = 71395, WindSpeed = 4}, new { Timestamp = new DateTime(2010,... 阅读全文
posted @ 2011-08-21 23:42 StreamInsight 阅读(1295) 评论(0) 推荐(1)
摘要:上篇博文介绍了如何在LINQPad中输出StreamInsight查询结果。这篇文章将主要介绍StreamInsight基础查询操作中的过滤部分。 测试数据准备 为了方便测试查询,我们首先准备一个静态的测试数据源:var weatherData = new[]{ new { Timestamp = new DateTime(2010, 1, 1, 0, 00, 00), Temperature = -9.0, StationCode = 71395, WindSpeed = 4}, new { Timestamp = new DateTime(2010, 1, 1, 0, 30... 阅读全文
posted @ 2011-08-21 09:29 StreamInsight 阅读(1942) 评论(0) 推荐(1)
摘要:上篇博文介绍了开始StreamInsight查询的一些准备工作。这篇文章将主要介绍如何在LINQPad中输出StreamInsight的查询结果。 生成数据源 首先生成一些随机数据以供后面的查询所用,如下:var random = new Random();var baseTime = DateTime.Now.ToLocalTime();var dataSource = from i in Enumerable.Range(0, 10) select new { Time = baseTime.AddSeconds(i), Value = random.NextDouble() };接下去将 阅读全文
posted @ 2011-08-20 19:00 StreamInsight 阅读(1945) 评论(1) 推荐(1)
摘要:编写查询是使用StreamInsight进行开发工作中的一个最常见的工作,也是最关键的工作之一(另一个关键工作是编写适配器)。这个查询系列目的是让读者更深入的学习和使用怎样编写StreamInsight查询。 在正式开始讲解具体的查询之前,希望大家先按照先前的两篇博文进行一下准备工作: 《LINQPad中的StreamInsight驱动和样例更新啦》 其实就是安装LINQPad以及对应的StreamInsight驱动以及样例。 接下去的博文会围绕StreamInsight样例重点介绍StreamInsight中的基本查询以及复杂查询模式。 阅读全文
posted @ 2011-08-18 23:20 StreamInsight 阅读(1533) 评论(1) 推荐(1)