摘要: 有一个问题,为什么不直接将hasNext(),next()方法放在Iterable接口中,其他类直接实现就可以了? 原因是有些集合类可能不止一种遍历方式,实现了Iterable的类可以再实现多个Iterator内部类, 例如LinkedList中的ListItr和DescendingIterator 阅读全文
posted @ 2020-08-23 22:27 PEAR2020 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 一、entity 由于日志生成类型全部是String,所以只能用String类型的接收数据 但是可以在get方法中改变类型! Document(indexName = "consume",type = "client") public class Consume { private static S 阅读全文
posted @ 2020-08-23 22:24 PEAR2020 阅读(413) 评论(0) 推荐(0) 编辑
摘要: ############################################ zookeeper 安装 ############################### zookeeper 特征 leader 投票发起和决议,更新系统状态 follower 参与【选举】,处理并反馈客户请求 阅读全文
posted @ 2020-08-23 21:13 PEAR2020 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Caused by: org.elasticsearch.search.query.QueryPhaseExecutionException: Result window is too large, from + size must be less than or equal to: [10000] 阅读全文
posted @ 2020-08-23 13:29 PEAR2020 阅读(617) 评论(0) 推荐(0) 编辑