
io.numaproj.numaflow.sinker.DatumIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of numaflow-java Show documentation
Show all versions of numaflow-java Show documentation
SDK to implement Numaflow Source or User Defined Functions or Sinks in Java.
The newest version!
package io.numaproj.numaflow.sinker;
/**
* An iterator over a collection of {@link Datum} elements.
* Passed to {@link Sinker#processMessages(DatumIterator)} method.
*/
public interface DatumIterator {
/**
* Returns the next element in the iterator
* This method blocks until an element becomes available in the queue.
* When EOF_DATUM is received, this method will return null and the iterator will be closed.
*
* @return the next element in the iterator, null if EOF_DATUM is received or the iterator is already closed
*
* @throws InterruptedException if the thread is interrupted while waiting for the next element
*/
Datum next() throws InterruptedException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy