什么是有状态迭代器?
这个问题与 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.
希望这对您有所帮助。
关于java - 有状态迭代器 Java,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9957977/