官术网_书友最值得收藏!

Aggregation patterns

This chapter focuses on design patterns that produce a top-level, summarized view of your data, so you can glean insights not available from looking at a localized set of records alone. Aggregation, or summarization, analytics are all about grouping similar data together and then performing an operation, such as calculating a statistic, building an index, or simply counting.

The patterns in this chapter are numerical summarizations, inverted index, and counting with counters:

The aggregation pattern is a general pattern for calculating aggregate statistical values over your data, and is discussed in detail. It is important to use the combiner properly, and to understand the calculation you are performing before writing the code. Basically, the logic is to group records together by a key field and calculate a numerical aggregate per group. 

Aggregations, or numerical summarizations, can be used when both of the following are true:

  • You are dealing with numerical data or counting
  • The data can be grouped by specific fields
主站蜘蛛池模板: 赣州市| 西平县| 龙胜| 筠连县| 札达县| 宕昌县| 名山县| 大悟县| 荣昌县| 通城县| 芜湖县| 合作市| 凤凰县| 安平县| 江门市| 轮台县| 安乡县| 名山县| 雷山县| 视频| 甘孜| 清流县| 民权县| 云霄县| 德兴市| 苏州市| 舒兰市| 三台县| 五指山市| 砚山县| 象州县| 乐亭县| 庆元县| 靖边县| 三都| 安阳县| 连城县| 衡东县| 兴安县| 景泰县| 乌鲁木齐市|