Class CompactingHashTable.EntryIterator
- java.lang.Object
-
- org.apache.flink.runtime.operators.hash.CompactingHashTable.EntryIterator
-
- All Implemented Interfaces:
MutableObjectIterator<T>
- Enclosing class:
- CompactingHashTable<T>
public class CompactingHashTable.EntryIterator extends Object implements MutableObjectIterator<T>
Iterator that traverses the whole hash table onceIf entries are inserted during iteration they may be overlooked by the iterator
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
next()
Gets the next element from the collection.T
next(T reuse)
Gets the next element from the collection.
-
-
-
Method Detail
-
next
public T next(T reuse) throws IOException
Description copied from interface:MutableObjectIterator
Gets the next element from the collection. The contents of that next element is put into the given reuse object, if the type is mutable.- Specified by:
next
in interfaceMutableObjectIterator<T>
- Parameters:
reuse
- The target object into which to place next element if E is mutable.- Returns:
- The filled object or
null
if the iterator is exhausted. - Throws:
IOException
- Thrown, if a problem occurred in the underlying I/O layer or in the serialization / deserialization logic
-
next
public T next() throws IOException
Description copied from interface:MutableObjectIterator
Gets the next element from the collection. The iterator implementation must obtain a new instance.- Specified by:
next
in interfaceMutableObjectIterator<T>
- Returns:
- The object or
null
if the iterator is exhausted. - Throws:
IOException
- Thrown, if a problem occurred in the underlying I/O layer or in the serialization / deserialization logic
-
-