加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

有状态迭代器Java

发布时间:2020-12-15 02:32:54 所属栏目:Java 来源:网络整理
导读:什么是有状态迭代器? 此问题与Hadoop中定义的用于执行连接的迭代器有关.正如参考documentation所述: This defines an interface to a stateful Iterator that can replay elements added to it directly. Note that this does not extend Iterator. ‘重播
什么是有状态迭代器?

此问题与Hadoop中定义的用于执行连接的迭代器有关.正如参考documentation所述:

This defines an interface to a stateful Iterator that can replay
elements added to it directly. Note that this does not extend
Iterator.

‘重播元素直接添加到它’是什么意思?这个迭代器与通常的迭代器有什么不同?

解决方法

以下是有状态迭代器的更多信息:

http://en.wikipedia.org/wiki/Iterator(查看发生器)

以及一些进一步的信息:

http://www.itmaybeahack.com/book/python-2.6/html/p02/p02c08_generators.html

最后到这里:

http://www.devdaily.com/java/jwarehouse/trove-1.1b3/src/gnu/trove/TIntIntIterator.java.shtml

As the iteration is stateful,access to the key/value parts of the
current map entry happens in constant time.

希望这可以帮助.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读