How is Aggregation designed

简介: 我的sample code: 最后是framework debug
<html>
<script>
function Aggregation(name) {
this.mAggregationName = name;
}
var oItemAgg = new Aggregation("item"); // so far, Aggregation oject has no available method
debugger;
Aggregation.prototype.generate = function(add, prototype) {
var that = this, n = that.mAggregationName;
add("getAggregation", prototype, function() {
console.log(" getAggregation should be implemented here!");
});
}
function add(name, proto, fn){
if ( !proto[name] ) {
proto[name] =  fn;
}
}
oItemAgg.generate(add, Aggregation.prototype);
oItemAgg.getAggregation();
debugger;
</script>

image.png

image.png


相关文章
|
2月前
aggregate和annotate的区别
aggregate和annotate的区别。
8 1
|
10月前
|
机器学习/深度学习 数据采集 算法
Clustering
机器学习中的聚类(Clustering)是一种无监督学习方法,它通过分析数据集中的特征和规律,将数据自动划分为若干个具有相似特征的簇(cluster)。聚类的目的是找出数据之间的内在联系,为数据挖掘和分析提供有用的信息。
71 1
|
数据建模
白话Elasticsearch59-数据建模实战_ Nested Aggregation/ Reverse nested Aggregation对嵌套的博客评论数据进行聚合分析
白话Elasticsearch59-数据建模实战_ Nested Aggregation/ Reverse nested Aggregation对嵌套的博客评论数据进行聚合分析
60 0
|
SQL 数据挖掘 关系型数据库
Hive 高阶--分组窗口函数--OLAP 相关分组函数(GROUPING SETS,CUBE,ROLLUP)|学习笔记
快速学习 Hive 高阶--分组窗口函数--OLAP 相关分组函数(GROUPING SETS,CUBE,ROLLUP)
190 0
Hive 高阶--分组窗口函数--OLAP 相关分组函数(GROUPING SETS,CUBE,ROLLUP)|学习笔记
|
缓存 Java 关系型数据库
Es Bucket聚合(桶聚合) Terms Aggregation与Significant Terms Aggregation
Es Bucket聚合(桶聚合) Terms Aggregation与Significant Terms Aggregation
Es Bucket聚合(桶聚合) Terms Aggregation与Significant Terms Aggregation
ES Pipeline Aggregation(管道聚合)
ES Pipeline Aggregation(管道聚合)
ES Pipeline Aggregation(管道聚合)
|
SQL 算法 数据挖掘
|
分布式计算
RDD的 transformations 和 actions 总结
RDD的transformations和actions 两个RDD:一个RDD包含 {1, 2, 3} , 另一个RDD包含{3, 4, 5}
89 0
RDD的 transformations 和 actions 总结
|
SQL 关系型数据库 分布式数据库
WinMagic : Subquery Elimination Using Window Aggregation
这篇精干的paper介绍了IBM DB2基于window function对相关子查询进行解相关的等价变换。
326 0
WinMagic : Subquery Elimination Using Window Aggregation
|
SQL 关系型数据库 MySQL
Accelerating Queries with Group-By and Join By Groupjoin
这篇paper介绍了HyPer中引入的groupjoin算子,针对 join + group by这种query,可以在某些前提条件下,在join的过程中同时完成grouping+agg的计算。 比如用hash table来实现hash join和group by,就可以避免再创建一个hash table,尤其当join的数据量很大,产生的group结果又较少时,可以很好的提升执行效率。
326 0
Accelerating Queries with Group-By and Join By Groupjoin