Package org.apache.flink.runtime.io.disk
Class InputViewIterator<E>
- java.lang.Object
-
- org.apache.flink.runtime.io.disk.InputViewIterator<E>
-
- All Implemented Interfaces:
MutableObjectIterator<E>
public class InputViewIterator<E> extends Object implements MutableObjectIterator<E>
-
-
Constructor Summary
Constructors Constructor Description InputViewIterator(DataInputView inputView, TypeSerializer<E> serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
next()
Gets the next element from the collection.E
next(E reuse)
Gets the next element from the collection.
-
-
-
Constructor Detail
-
InputViewIterator
public InputViewIterator(DataInputView inputView, TypeSerializer<E> serializer)
-
-
Method Detail
-
next
public E next(E 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<E>
- 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 E 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<E>
- 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
-
-