码迷,mamicode.com
首页 >  
搜索关键字:aggregate    ( 517个结果
Spark-RDD API
EnglishThe RDD API By ExampleaggregateThe aggregate function allows the user to apply two different reduce functions to the RDD. The first reduce function is applied within each partition to reduce the...
分类:Windows程序   时间:2016-05-12 15:31:26    阅读次数:907
【康拓逆展开】HDU2062Subset sequence
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2062 Problem Description Consider the aggregate An= { 1, 2, …, n }. For example, A1={1}, A3={1,2,3}. A subset sequence is defined as a array of a...
分类:其他好文   时间:2016-05-12 14:41:36    阅读次数:185
MongoDB 的分组操作 In C#
C#对mongodb的分组查询操作,主要通过脚本或Aggregate方法来实现,以下通过一些实例作解析: 参考资料:http://www.tuicool.com/articles/2iqUZj http://www.cnblogs.com/vnii/archive/2012/08/23/265289 ...
分类:数据库   时间:2016-04-20 11:22:42    阅读次数:184
Pentaho Work with Big Data(七)—— 从Hadoop集群抽取数据
一、把数据从HDFS抽取到RDBMS 1. 从下面的地址下载示例文件。  http://wiki.pentaho.com/download/attachments/23530622/weblogs_aggregate.txt.zip?version=1&modificationDate=1327067858000 2. 用下面的命令把解压缩后的weblogs_aggregate.txt文...
分类:其他好文   时间:2016-04-16 19:33:03    阅读次数:198
【MongoDB】使用aggregate求最大值
mongoaggregate查询:db.collection.aggregate({ $group:{ _id:"$id",//"$_id"代表引用集合中_id列 max_value:{$max:"$times"}//"$times"代表引用集合中times列 }, $match:{times:{$gte:100}} })相当于sql查询:select_id,max(times) fromcollection wheretimes>=100
分类:数据库   时间:2016-04-14 12:27:34    阅读次数:712
细说Linq之Aggregate
前言 Linq中有关常见的方法我们已经玩的得心应手,而对于那些少用的却是置若罔闻(夸张了点),但只有在实际应用中绞尽脑汁想出的方法还不如内置的Linq方法来的实际和简洁,不喜勿喷,怪我见识短。 通过Ruby引入话题 之前在Ruby中演示了一段代码来讲述Ruby的神奇,下面我们再来看一下: 是的就是这 ...
分类:其他好文   时间:2016-04-12 01:53:49    阅读次数:189
R语言笔记 分组计算描述性统计量aggregate, summaryBy ,describe.by
在比较多组个体或观测时,关注的焦点经常是各组的描述性统计信息,而不是样本整体的描述性统计信息。同样地,在R中完成这个任务有若干种方法。我们将以获取变速箱类型各水平的描述性统计量开始。vars<-c("mpg","hp","wt")>aggregate(mtcars[vars],by=list(am=mtcars$am),..
分类:编程语言   时间:2016-04-07 18:54:07    阅读次数:5344
使用count结合nvl函数时碰到的问题
count()函数功能:统计表中中某个字段或所有记录个数,字段值为null的不做统计。 手册中解释: COUNT returns the number of rows returned by the query. You can use it as an aggregate or analytic ...
分类:其他好文   时间:2016-04-05 19:50:24    阅读次数:151
迭代器模式 (Iterator)
迭代器模式(Iterator), Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation. (它提供一各方法访问一个 ...
分类:其他好文   时间:2016-03-27 18:04:44    阅读次数:145
MongoDB 聚合
MongoDB中聚合(aggregate)主要用于处理数据(诸如统计平均值,求和等),并返回计算后的数据结果。有点类似sql语句中的 count(*)。 MongoDB中聚合的方法使用aggregate()。 aggregate() 方法的基本语法格式如下所示: 集合中的数据如下: 现在我们通过以上 ...
分类:数据库   时间:2016-03-24 13:06:03    阅读次数:207
517条   上一页 1 ... 38 39 40 41 42 ... 52 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!