32

ES学习笔记之-AvgAggregation的实现过程分析-每天进步一点点

 5 years ago
source link: http://blog.51cto.com/sbp810050504/2324922
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
我们需要查看数据的统计量时,均值是最重要的特征之一。对于海量数据,这类简单的聚合ES可以做到秒级别返回。聚合是ES的特色功能。那么ES是如何实现这一功能的呢?我们知道,ES的数据存储在各个节点中,所以ES的实现AvgAggregation时基本思路就是先统计各个节点,然后汇总。先了解ES是如何统计单个节点:参考AvgAggregator@OverridepublicLeafBucketCollec

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK