我正在从二级事件中心接收数据。我想将第二级数据转换为分钟级。我应该为此写啥查询?

Posted

技术标签:

【中文标题】我正在从二级事件中心接收数据。我想将第二级数据转换为分钟级。我应该为此写啥查询?【英文标题】:I am receiving data from event hub at second level. i want to transform that second level data to minute level. What query should I write for that?我正在从二级事件中心接收数据。我想将第二级数据转换为分钟级。我应该为此写什么查询? 【发布时间】:2019-09-17 10:27:17 【问题描述】:

输入数据类似于

59409122452613044868884217206482057377,432221432,2016-04-06 20:00:00,2016-04-06 20:00:01,Channel 4,The Supervet,2016-04-06 20:00:00.004-0000- 06 20:00:20.0000000,LIVE,LIVE,News,Documentary,1000,,The Supervet - 系列 7,-2 263649234702986406671448423011884327516,432221432,2016-04-06 20:00:01,2016-04-06 20:00:02,频道 4,Supervet,2016-04-06 20:00:0160.00000000-20-00- 00:20.0000000,LIVE,LIVE,News,Documentary,1000,,The Supervet - 系列 7,-2 45230206674391617469323788546714891648,432221432,2016-04-06 20:00:02,2016-04-06 20:00:03,Channel 4,The Supervet,2016-04-06 20:00:0160.000006-2-4-4 00:20.0000000,LIVE,LIVE,News,Documentary,1000,,The Supervet - 系列 7,-2 279010763836525463474142095392007675007,432221432,2016-04-06 20:00:03,2016-04-06 20:00:04,Channel 4,The Supervet,2016-04-06 20:00:010.0000000-20-00- 00:20.0000000,LIVE,LIVE,News,Documentary,1000,,The Supervet - 系列 7,-2 167873679971561615738619632383957198735,432221432,2016-04-06 20:00:04,2016-04-06 20:00:05,Channel 4,The Supervet,2016-04-06 20:00:0160.0000000-00-00- 00:20.0000000,LIVE,LIVE,News,Documentary,1000,,The Supervet - 系列 7,-2 35497058475986648042007359340702916856,432221432,2016-04-06 20:00:05,2016-04-06 20:00:06,频道 4,Supervet,2016-04-06 20:00:00160.000006-2-4, 00:20.0000000,LIVE,LIVE,News,Documentary,1000,,The Supervet - 系列 7,-2 337876088861193510875869019453151763828,432221432,2016-04-06 20:00:06,2016-04-06 20:00:07,Channel 4,The Supervet,2016-04-06 20:00:0160.0000000-20- 00:20.0000000,LIVE,LIVE,News,Documentary,1000,,The Supervet - 系列 7,-2 47217330213199917248090863159093904302,432221432,2016-04-06 20:00:07,2016-04-06 20:00:08,Channel 4,The Supervet,2016-04-06 20:00:010.000006-02-4, 00:20.0000000,LIVE,LIVE,News,Documentary,1000,,The Supervet - 系列 7,-2 55098260101235798009761365494917919250,432221432,2016-04-06 20:00:08,2016-04-06 20:00:09,Channel 4,The Supervet,2016-04-06 20:00:0010.000006-2-4, 00:20.0000000,LIVE,LIVE,News,Documentary,1000,,The Supervet - 系列 7,-2 89164749756298354981381333891783302288,432221432,2016-04-06 20:00:09,2016-04-06 20:00:10,Channel 4,The Supervet,2016-04-06 20:00:0010.000006002-4-4, 00:20.0000000,LIVE,LIVE,News,Documentary,1000,,The Supervet - 系列 7,-2 299812905942114176730968658457034871141,432221432,2016-04-06 20:00:10,2016-04-06 20:00:11,频道 4,Supervet,2016-04-06 20:02:0160.00000000-20- 00:20.0000000,LIVE,LIVE,News,Documentary,1000,,The Supervet - 系列 7,-2 239017369564517842658599624185907604126,432221432,2016-04-06 20:00:11,2016-04-06 20:00:12,Channel 4,The Supervet,2016-04-06 20:00:0160.00000000-20- 00:20.0000000,LIVE,LIVE,News,Documentary,1000,,The Supervet - 系列 7,-2 292106920572693590741235795986008625826,432221432,2016-04-06 20:00:12,2016-04-06 20:00:13,Channel 4,The Supervet,2016-04-06 20:00:010.0000000-20-00, 00:20.0000000,LIVE,LIVE,News,Documentary,1000,,The Supervet - 系列 7,-2

我想将这些记录转换为分钟级别,例如 59409122452613044868884217206482057377,432221432,2016-04-06 20:00:00,2016-04-06 20:00:13,频道 4,The Supervet,2016-04-06 20:00:00160.000006-2-4, 00:20.0000000,LIVE,LIVE,News,Documentary,1000,,The Supervet - 系列 7,-2

【问题讨论】:

【参考方案1】:

Eventhub 是一种获取数据的服务。无论您写入什么,它都会输出相同的数据。

现在如果要获取分钟级别的数据,可以有两种选择:

    将分钟级别的数据直接提取到 eventthub 中。 使用 Azure Web 作业等后台作业将二级数据聚合到分钟级数据。

【讨论】:

以上是关于我正在从二级事件中心接收数据。我想将第二级数据转换为分钟级。我应该为此写啥查询?的主要内容,如果未能解决你的问题,请参考以下文章

如何在使用除 Id 之外的字段获取数据时实现二级缓存

允许从属(二级)数据验证的例外情况。

yii如何做下拉菜单,不是联动二级的,就是那种比如我想发邮件给别人,可以有个下拉菜单随便选择要发给谁的

ssh整合hibernate 使用spring管理hibernate二级缓存,配置hibernate4.0以上二级缓存

我如何利用二级课程来处理我的事件?

转换多索引数据框并按位置更改二级索引