Class EmbeddedPythonIterator
- java.lang.Object
-
- org.apache.flink.streaming.api.operators.python.embedded.EmbeddedPythonIterator
-
- All Implemented Interfaces:
AutoCloseable
@Internal public final class EmbeddedPythonIterator extends Object implements AutoCloseable
Reflective adapter for embedded Python iterators.PEMJA iterator objects may come back from a different user-code classloader after recovery, so callers should not hard-cast them to
pemja.core.object.PyIterator.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static EmbeddedPythonIteratorfrom(Object iterator)booleanhasNext()Objectnext()
-
-
-
Method Detail
-
from
public static EmbeddedPythonIterator from(Object iterator)
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-