package
Version:
v1.0.5
Opens a new window with list of versions in this module.
Published: May 10, 2019
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type MapReduce struct {
}
统计功能类
返回带时间周期的计算结果集 以年,月,周,日的统计结果
type MapValue struct {
Value interface{}
Datetime *StatDate
}
MAP带时间值
type ReduceValue struct {
Count int
Value float64
}
计算结果值
type Stat interface {
Map(data interface{}) interface{}
Reduce(data interface{}) interface{}
}
统计时间
func NewStatDate(unix_time interface{}) *StatDate
新创建一个统计时间
Source Files
¶
Click to show internal directories.
Click to hide internal directories.