Class MapPartitionIterator<IN>

    • Field Detail

      • DEFAULT_MAX_CACHE_NUM

        public static final int DEFAULT_MAX_CACHE_NUM
        Max number of caches.

        The constant defines the maximum number of caches that can be created. Its value is set to 100, which is considered sufficient for most parallel jobs. Each cache is a record and occupies a minimal amount of memory so the value is not excessively large.

        See Also:
        Constant Field Values
    • Constructor Detail

    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<IN>
      • addRecord

        public void addRecord​(IN record)
      • close

        public void close()