摘要: 1. 自定义累加器 自定义累加器需要继承AccumulatorParam,实现addInPlace和zero方法。 例1:实现Long类型的累加器 例2:定义Set[String],可用于记录错误日志 2. AccumulableCollection使用 阅读全文
posted @ 2019-03-02 12:39 mengrennwpu 阅读(1983) 评论(0) 推荐(0) 编辑